diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2009-08-07 17:32:31 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2009-08-07 17:32:31 +0000 |
commit | 2ee8b65e4e84f0b69e75eaabb45cd6b4153bdb0d (patch) | |
tree | bbab22ddd73d636b48abf5a47ccc8160282bdf95 /ext/standard/strnatcmp.c | |
parent | 934a9037c82b594d2c253f2bc0abda7310eab7ab (diff) | |
download | php-git-2ee8b65e4e84f0b69e75eaabb45cd6b4153bdb0d.tar.gz |
Oops, true/false are not defined on Linux. They are on OSX.
Diffstat (limited to 'ext/standard/strnatcmp.c')
-rw-r--r-- | ext/standard/strnatcmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c index 3a0e1ec5df..2d7ecd8178 100644 --- a/ext/standard/strnatcmp.c +++ b/ext/standard/strnatcmp.c @@ -105,7 +105,8 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len char const *ap, *bp; char const *aend = a + a_len, *bend = b + b_len; - int fractional, result, leading = true; + int fractional, result; + short leading = 1; if (a_len == 0 || b_len == 0) return a_len - b_len; @@ -124,7 +125,7 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len cb = *++bp; } - leading = false; + leading = 0; /* process run of digits */ if (isdigit((int)(unsigned char)ca) && isdigit((int)(unsigned char)cb)) { |