From: Moriyoshi Koizumi Date: Fri, 10 Jan 2003 04:32:25 +0000 (+0000) Subject: Added missing cast operators X-Git-Tag: PHP_5_0_dev_before_13561_fix~339 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a1d69d4ba25aadb4d8e28f1c5a7208a29357589;p=php Added missing cast operators --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 0e55a2ac3c..a937dab37f 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -641,7 +641,7 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval, } } - if (cnt >= offset) { + if (cnt >= (unsigned int)offset) { if (cd2 == NULL) { cd2 = icv_open(enc, GENERIC_SUPERSET_NAME); @@ -790,7 +790,7 @@ static php_iconv_err_t _php_iconv_strpos(unsigned int *pretval, } } if (offset >= 0) { - if (cnt >= offset) { + if (cnt >= (unsigned int)offset) { if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { if (match_ofs == (unsigned int)-1) { match_ofs = cnt;