cvs: php-src /ext/standard strnatcmp.c

From: Date: Sun, 26 Apr 2009 15:53:52 +0000
Subject: cvs: php-src /ext/standard strnatcmp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-57282@lists.php.net to get a copy of this message
iliaa Sun Apr 26 15:53:52 2009 UTC Modified files: /php-src/ext/standard strnatcmp.c Log: Fixed compiler warning http://cvs.php.net/viewvc.cgi/php-src/ext/standard/strnatcmp.c?r1=1.15&r2=1.16&diff_format=u Index: php-src/ext/standard/strnatcmp.c diff -u php-src/ext/standard/strnatcmp.c:1.15 php-src/ext/standard/strnatcmp.c:1.16 --- php-src/ext/standard/strnatcmp.c:1.15 Thu Apr 9 16:08:34 2009 +++ php-src/ext/standard/strnatcmp.c Sun Apr 26 15:53:52 2009 @@ -38,7 +38,7 @@ #if 0 static char const *version UNUSED = - "$Id: strnatcmp.c,v 1.15 2009/04/09 16:08:34 rasmus Exp $"; + "$Id: strnatcmp.c,v 1.16 2009/04/26 15:53:52 iliaa Exp $"; #endif /* {{{ compare_right */ @@ -112,10 +112,10 @@ 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 */

« previous php.cvs (#57282) next »