From: Ilia Alshanetsky Date: Sun, 23 Jan 2011 16:44:58 +0000 (+0000) Subject: Fixed compiler warning X-Git-Tag: php-5.4.0alpha1~191^2~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c29975e4d72b2daae739ff35e206092d40ae3a0;p=php Fixed compiler warning --- diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index cacb468bdf..59af952c12 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -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; }