From 29487b7d0a2ed02a492bd28f9373312c76fd19ea Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 15 May 2009 18:01:05 +0000 Subject: [PATCH] Fix compiler warnings (only in HEAD), same style of silence as in 5.3 --- ext/iconv/iconv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.40.0