Skip to content

Commit e681b87

Browse files
author
Julien Pauli
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fix warning about sign-mismatch comparisons
2 parents 01f4a52 + e14b14d commit e681b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/php_smart_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
: newlen + SMART_STRING_PREALLOC; \
6262
SMART_STRING_DO_REALLOC(d, what); \
6363
} else { \
64-
if(UNEXPECTED(n > SIZE_MAX - (d)->len)) { \
64+
if(UNEXPECTED((size_t)n > SIZE_MAX - (d)->len)) { \
6565
zend_error(E_ERROR, "String size overflow"); \
6666
} \
6767
newlen = (d)->len + (n); \

0 commit comments

Comments
 (0)