From: Julien Pauli Date: Fri, 2 Sep 2016 15:01:52 +0000 (+0200) Subject: Fix warning about sign-mismatch comparisons X-Git-Tag: php-7.1.0RC2~52^2~11^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e14b14d026fd588117d8c976cb2dfdeafb45c8dd;p=php Fix warning about sign-mismatch comparisons --- diff --git a/ext/standard/php_smart_string.h b/ext/standard/php_smart_string.h index 1175d32907..ea2cc4bd6b 100644 --- a/ext/standard/php_smart_string.h +++ b/ext/standard/php_smart_string.h @@ -61,7 +61,7 @@ : newlen + SMART_STRING_PREALLOC; \ SMART_STRING_DO_REALLOC(d, what); \ } else { \ - if(UNEXPECTED(n > SIZE_MAX - (d)->len)) { \ + if(UNEXPECTED((size_t)n > SIZE_MAX - (d)->len)) { \ zend_error(E_ERROR, "String size overflow"); \ } \ newlen = (d)->len + (n); \