]> granicus.if.org Git - php/commitdiff
Fixed compiler warning
authorIlia Alshanetsky <iliaa@php.net>
Tue, 26 Dec 2006 17:17:52 +0000 (17:17 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 26 Dec 2006 17:17:52 +0000 (17:17 +0000)
Zend/zend_strtod.c

index d388697f5b8e2175fe74e36d60fe4acdc152ff2d..3a80d9334cff5a70215fc2c6fd8125c6e9f2c52c 100644 (file)
@@ -2568,7 +2568,7 @@ ZEND_API double zend_hex_strtod(const char *str, char **endptr)
                s += 2;
        }
 
-       while (c = *s++) {
+       while ((c = *s++)) {
                if (c >= '0' && c <= '9') {
                        c -= '0';
                } else if (c >= 'A' && c <= 'F') {