Skip to content

Commit aaf09f7

Browse files
committed
eliminate casts
1 parent 384f0f8 commit aaf09f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main/streams/memory.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,10 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
618618
php_stream *stream;
619619
php_stream_temp_data *ts;
620620
char *comma, *semi, *sep, *key;
621-
size_t mlen, dlen, plen, vlen;
621+
size_t mlen, dlen, plen, vlen, ilen;
622622
zend_off_t newoffs;
623623
zval meta;
624-
int base64 = 0, ilen;
624+
int base64 = 0;
625625
zend_string *base64_comma = NULL;
626626

627627
ZVAL_NULL(&meta);
@@ -720,11 +720,11 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
720720
return NULL;
721721
}
722722
comma = ZSTR_VAL(base64_comma);
723-
ilen = (int)ZSTR_LEN(base64_comma);
723+
ilen = ZSTR_LEN(base64_comma);
724724
} else {
725725
comma = estrndup(comma, dlen);
726726
dlen = php_url_decode(comma, dlen);
727-
ilen = (int)dlen;
727+
ilen = dlen;
728728
}
729729

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

0 commit comments

Comments
 (0)