diff options
author | Julien Pauli <jpauli@php.net> | 2016-09-02 17:01:52 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2016-09-02 17:01:52 +0200 |
commit | e14b14d026fd588117d8c976cb2dfdeafb45c8dd (patch) | |
tree | 0312c66f209ac591eac5b2ec8f2220823eb8e0a4 | |
parent | ccc8d92d3d86046e29c53035ab0bac377ad0e067 (diff) | |
download | php-git-e14b14d026fd588117d8c976cb2dfdeafb45c8dd.tar.gz |
Fix warning about sign-mismatch comparisons
-rw-r--r-- | ext/standard/php_smart_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); \ |