From 9c29975e4d72b2daae739ff35e206092d40ae3a0 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 23 Jan 2011 16:44:58 +0000 Subject: [PATCH] Fixed compiler warning --- ext/filter/logical_filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1