From e14b14d026fd588117d8c976cb2dfdeafb45c8dd Mon Sep 17 00:00:00 2001 From: Julien Pauli Date: Fri, 2 Sep 2016 17:01:52 +0200 Subject: [PATCH] Fix warning about sign-mismatch comparisons --- ext/standard/php_smart_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- 2.50.1