]> granicus.if.org Git - php/commitdiff
fixed signed/unsigned mismatch warning
authorAnatol Belski <ab@php.net>
Mon, 15 Sep 2014 19:03:26 +0000 (21:03 +0200)
committerAnatol Belski <ab@php.net>
Tue, 16 Sep 2014 19:17:15 +0000 (21:17 +0200)
ext/mbstring/mbstring.c

index 212c8d013f866d4312f37679ca51ce51efd32b08..b2bceed426fdcc5111a3bb2792ffa83bf9a4fe0a 100644 (file)
@@ -2963,7 +2963,7 @@ PHP_FUNCTION(mb_strimwidth)
        string.val = (unsigned char *)str;
        string.len = str_len;
 
-       if (from < 0 || from > str_len) {
+       if (from < 0 || from > (zend_long)str_len) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Start position is out of range");
                RETURN_FALSE;
        }