mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
Fixed compiler warning
This commit is contained in:
parent
783285e62a
commit
266084e844
@ -88,7 +88,7 @@ static int php_filter_parse_int(const char *str, unsigned int str_len, long *ret
|
||||
}
|
||||
|
||||
if ((end - str > MAX_LENGTH_OF_LONG - 1) /* number too long */
|
||||
|| (SIZEOF_LONG == 4 && end - str == MAX_LENGTH_OF_LONG - 1 && *str > '2')) {
|
||||
|| (SIZEOF_LONG == 4 && (end - str == MAX_LENGTH_OF_LONG - 1) && *str > '2')) {
|
||||
/* overflow */
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user