]> granicus.if.org Git - php/commitdiff
Fix compiler warnings (only in HEAD), same style of silence as in 5.3
authorKalle Sommer Nielsen <kalle@php.net>
Fri, 15 May 2009 18:01:05 +0000 (18:01 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Fri, 15 May 2009 18:01:05 +0000 (18:01 +0000)
ext/iconv/iconv.c

index 3a399c399284cb39ce11d16650d1531997390c1e..d6c55ce62772253ef314bb7e7c22f9ccf74f3c75 100644 (file)
@@ -753,15 +753,15 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval,
                }
        }
 
-       if(len > total_len) {
+       if((unsigned int) len > total_len) {
                len = total_len;
        }
 
-       if (offset >= total_len) {
+       if ((unsigned int) offset >= total_len) {
                return PHP_ICONV_ERR_SUCCESS;
        }
 
-       if ((offset + len) > total_len) {
+       if ((unsigned int) (offset + len) > total_len) {
                /* trying to compute the length */
                len = total_len - offset;
        }