]> granicus.if.org Git - php/commitdiff
- Fix warning
authorMarcus Boerger <helly@php.net>
Mon, 27 Sep 2004 08:50:41 +0000 (08:50 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 27 Sep 2004 08:50:41 +0000 (08:50 +0000)
# What's the reason _zvalue_value.str.len is int instead of uint/zend_uint?

Zend/zend_execute_API.c

index 45d585f5965c72900ac70a97af692f84d4930128..03994e7035eb9477d1ef6e61bcafffd2469ae549 100644 (file)
@@ -479,7 +479,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
                                continue;
                        }
 
-                       if (const_value.type == IS_STRING && const_value.value.str.len == str_index_len-1 &&
+                       if (const_value.type == IS_STRING && (uint)const_value.value.str.len == str_index_len-1 &&
                           !strncmp(const_value.value.str.val, str_index, str_index_len)) {
                                /* constant value is the same as its name */
                                zval_dtor(&const_value);