]> granicus.if.org Git - php/commitdiff
eliminate casts
authorAnatol Belski <ab@php.net>
Sun, 9 Jul 2017 13:10:42 +0000 (15:10 +0200)
committerAnatol Belski <ab@php.net>
Sun, 9 Jul 2017 13:11:02 +0000 (15:11 +0200)
main/streams/memory.c

index d41b2f5cfac7caaff24719e96260e4f6f51c38bc..7af87c7efbcdd21ec7552e45be4b9a6ed15d0f65 100644 (file)
@@ -618,10 +618,10 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
        php_stream *stream;
        php_stream_temp_data *ts;
        char *comma, *semi, *sep, *key;
-       size_t mlen, dlen, plen, vlen;
+       size_t mlen, dlen, plen, vlen, ilen;
        zend_off_t newoffs;
        zval meta;
-       int base64 = 0, ilen;
+       int base64 = 0;
        zend_string *base64_comma = NULL;
 
        ZVAL_NULL(&meta);
@@ -720,11 +720,11 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
                        return NULL;
                }
                comma = ZSTR_VAL(base64_comma);
-               ilen = (int)ZSTR_LEN(base64_comma);
+               ilen = ZSTR_LEN(base64_comma);
        } else {
                comma = estrndup(comma, dlen);
                dlen = php_url_decode(comma, dlen);
-               ilen = (int)dlen;
+               ilen = dlen;
        }
 
        if ((stream = php_stream_temp_create_rel(0, ~0u)) != NULL) {