com php-src: eliminate casts: main/streams/memory.c
| From: | Anatol Belski | Date: | Sun, 09 Jul 2017 13:11:02 +0000 |
| Subject: | com php-src: eliminate casts: main/streams/memory.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98475@lists.php.net to get a copy of this message | ||
Commit: aaf09f7bdf72a28eef8d29715e04bd96a1ba901f
Author: Anatol Belski <ab@php.net> Sun, 9 Jul 2017 15:10:42 +0200
Parents: 384f0f8a4c91c3fa1c2de4786f971197a0d52ee7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aaf09f7bdf72a28eef8d29715e04bd96a1ba901f
Log:
eliminate casts
Changed paths:
M main/streams/memory.c
Diff:
diff --git a/main/streams/memory.c b/main/streams/memory.c
index d41b2f5..7af87c7 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -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) {