Skip to content

Commit fa1e8f7

Browse files
committed
fix datatype mismatch
1 parent 201f47e commit fa1e8f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/streams/memory.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
717717
return NULL;
718718
}
719719
comma = base64_comma->val;
720-
ilen = base64_comma->len;
720+
ilen = (int)base64_comma->len;
721721
} else {
722722
comma = estrndup(comma, dlen);
723-
ilen = dlen = php_url_decode(comma, dlen);
723+
dlen = php_url_decode(comma, (int)dlen);
724+
ilen = (int)dlen;
724725
}
725726

726727
if ((stream = php_stream_temp_create_rel(0, ~0u)) != NULL) {

0 commit comments

Comments
 (0)