]> granicus.if.org Git - php/commitdiff
Added missing cast operators
authorMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 10 Jan 2003 04:32:25 +0000 (04:32 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 10 Jan 2003 04:32:25 +0000 (04:32 +0000)
ext/iconv/iconv.c

index 0e55a2ac3ca4b4463e9d3f9e8a18b8624983d11b..a937dab37ff18cf2568a1138c7a0b0d83709b78a 100644 (file)
@@ -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;