]> granicus.if.org Git - php/commitdiff
Fixed compiler warning
authorIlia Alshanetsky <iliaa@php.net>
Sun, 23 Jan 2011 16:44:58 +0000 (16:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 23 Jan 2011 16:44:58 +0000 (16:44 +0000)
ext/filter/logical_filters.c

index cacb468bdf138c14f16df9871350da0c9c90c379..59af952c12cac53a958185adba40f432166d10ff 100644 (file)
@@ -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;
        }