summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wilmas <mattwil@php.net>2009-03-31 11:22:08 +0000
committerMatt Wilmas <mattwil@php.net>2009-03-31 11:22:08 +0000
commitf75fff5ea7c7c7ba829adcb3ad9ec33e4e864dc6 (patch)
tree72b7858c368c6d0714c407eefdc7530812d353e6
parent5e274297f8edf2660b858d94cde61a2a22e18eee (diff)
downloadphp-git-f75fff5ea7c7c7ba829adcb3ad9ec33e4e864dc6.tar.gz
- MFH: Removed unused LONG_SIGN_MASK definition, and a stray \
- Changed sign flag to int (it's no longer being used in a calculation)
-rw-r--r--ext/filter/logical_filters.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c
index 84a54f22bd..40011a9e21 100644
--- a/ext/filter/logical_filters.c
+++ b/ext/filter/logical_filters.c
@@ -30,8 +30,6 @@
# include <arpa/inet.h>
#endif
-#define LONG_SIGN_MASK (1L << (8*sizeof(long)-1))
-
#ifndef INADDR_NONE
# define INADDR_NONE ((unsigned long int) -1)
#endif
@@ -70,7 +68,7 @@
static int php_filter_parse_int(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */
long ctx_value;
- long sign = 0;
+ int sign = 0;
const char *end = str + str_len;
switch (*str) {
@@ -97,7 +95,7 @@ static int php_filter_parse_int(const char *str, unsigned int str_len, long *ret
while (str < end) {
if (*str >= '0' && *str <= '9') {
- ctx_value = (ctx_value * 10) + (*(str++) - '0'); \
+ ctx_value = (ctx_value * 10) + (*(str++) - '0');
} else {
return -1;
}