From: Kalle Sommer Nielsen Date: Fri, 15 May 2009 18:01:05 +0000 (+0000) Subject: Fix compiler warnings (only in HEAD), same style of silence as in 5.3 X-Git-Tag: php-5.4.0alpha1~191^2~3653 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29487b7d0a2ed02a492bd28f9373312c76fd19ea;p=php Fix compiler warnings (only in HEAD), same style of silence as in 5.3 --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 3a399c3992..d6c55ce627 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -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; }