From 6a1d69d4ba25aadb4d8e28f1c5a7208a29357589 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 10 Jan 2003 04:32:25 +0000 Subject: [PATCH] Added missing cast operators --- ext/iconv/iconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1