From: Ilia Alshanetsky Date: Sun, 26 Apr 2009 15:53:52 +0000 (+0000) Subject: Fixed compiler warning X-Git-Tag: php-5.4.0alpha1~191^2~3830 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=557dfd5abc4936ed8bbdb338c86975de60d81422;p=php Fixed compiler warning --- diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c index 106beda5d6..70a546e00e 100644 --- a/ext/standard/strnatcmp.c +++ b/ext/standard/strnatcmp.c @@ -112,10 +112,10 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len ca = a[ai]; cb = b[bi]; /* skip over leading spaces or zeros */ - while (isspace((int)(unsigned char)ca) || (ca == '0' && (ai+1 < a_len)) && (a[ai+1] != '.')) + while (isspace((int)(unsigned char)ca) || ((ca == '0' && (ai+1 < a_len)) && (a[ai+1] != '.'))) ca = a[++ai]; - while (isspace((int)(unsigned char)cb) || (cb == '0' && bi+1 < b_len) && (b[bi+1] != '.')) + while (isspace((int)(unsigned char)cb) || ((cb == '0' && bi+1 < b_len) && (b[bi+1] != '.'))) cb = b[++bi]; /* process run of digits */