diff options
| author | Matt Wilmas <mattwil@php.net> | 2009-03-31 11:20:31 +0000 |
|---|---|---|
| committer | Matt Wilmas <mattwil@php.net> | 2009-03-31 11:20:31 +0000 |
| commit | 029b61b05e44a63439387db3287c08c2132104cc (patch) | |
| tree | 0d9d405b951ec0c040798d61eeba5d9eb2fa49d9 | |
| parent | 7dbbd25a141861e849acc2f3457d86ef385adf7d (diff) | |
| download | php-git-029b61b05e44a63439387db3287c08c2132104cc.tar.gz | |
- 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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 6fdc37b558..58eef8e8c8 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -34,8 +34,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 @@ -74,7 +72,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) { @@ -101,7 +99,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; } |
