From: Rasmus Lerdorf Date: Fri, 7 Aug 2009 17:32:31 +0000 (+0000) Subject: Oops, true/false are not defined on Linux. They are on OSX. X-Git-Tag: php-5.2.11RC1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a63ce91cd6a586d5775494a241ad2aa7cde137df;p=php Oops, true/false are not defined on Linux. They are on OSX. --- 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)) {