summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-09-27 08:50:41 +0000
committerMarcus Boerger <helly@php.net>2004-09-27 08:50:41 +0000
commit16c1f0ae74fb10f2971c152337d958796ebfd973 (patch)
treee609a0af7a68a9db927746710537f71b57b5fc05
parent8e09f929175b22f99cb0c965b9e5c01c9d20de00 (diff)
downloadphp-git-16c1f0ae74fb10f2971c152337d958796ebfd973.tar.gz
- Fix warning
# What's the reason _zvalue_value.str.len is int instead of uint/zend_uint?
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 45d585f596..03994e7035 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -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);