summaryrefslogtreecommitdiff
path: root/ext/filter/logical_filters.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-01-23 16:44:58 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-01-23 16:44:58 +0000
commit9c29975e4d72b2daae739ff35e206092d40ae3a0 (patch)
tree909ee135d688849958d6ca8b7a2a43887ebe8b5b /ext/filter/logical_filters.c
parent88a1f3988c6957183c20c75e77f308224bac9df1 (diff)
downloadphp-git-9c29975e4d72b2daae739ff35e206092d40ae3a0.tar.gz
Fixed compiler warning
Diffstat (limited to 'ext/filter/logical_filters.c')
-rw-r--r--ext/filter/logical_filters.c2
1 files changed, 1 insertions, 1 deletions
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;
}