projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc8d92
)
Fix warning about sign-mismatch comparisons
author
Julien Pauli
<jpauli@php.net>
Fri, 2 Sep 2016 15:01:52 +0000
(17:01 +0200)
committer
Julien Pauli
<jpauli@php.net>
Fri, 2 Sep 2016 15:01:52 +0000
(17:01 +0200)
ext/standard/php_smart_string.h
patch
|
blob
|
history
diff --git
a/ext/standard/php_smart_string.h
b/ext/standard/php_smart_string.h
index 1175d32907a9acd5640473ca99e583f095876846..ea2cc4bd6b1d48c46a339eef1459b971ddc265f3 100644
(file)
--- 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); \