]> granicus.if.org Git - php/commitdiff
fix signed/unsigned mismatch warnings
authorAnatol Belski <ab@php.net>
Mon, 15 Sep 2014 16:14:37 +0000 (18:14 +0200)
committerAnatol Belski <ab@php.net>
Mon, 15 Sep 2014 17:46:33 +0000 (19:46 +0200)
ext/iconv/iconv.c

index 19270a55b946e29d0db4a375469eaaf8bbdb9666..ac2374c6a3a48effda56894ca6ac9838379fa310 100644 (file)
@@ -824,16 +824,16 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval,
                }
        }
 
-       if(len > total_len) {
+       if(len > (zend_long)total_len) {
                len = total_len;
        }
 
 
-       if (offset >= total_len) {
+       if (offset >= (zend_long)total_len) {
                return PHP_ICONV_ERR_SUCCESS;
        }
 
-       if ((offset + len) > total_len ) {
+       if ((offset + len) > (zend_long)total_len ) {
                /* trying to compute the length */
                len = total_len - offset;
        }