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 */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to