summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-06-08 06:07:38 +0000
committerSascha Schumann <sas@php.net>2000-06-08 06:07:38 +0000
commit039551788b551fa85983bc2ba5838fe06b3df9d9 (patch)
tree0a5a6928de7e64813615e648d02d3645ff4b65e5 /Zend/zend_operators.c
parentdce9fd0e44e36f72640951615a6fcad009f7e0a5 (diff)
downloadphp-git-039551788b551fa85983bc2ba5838fe06b3df9d9.tar.gz
Add a couple of casts
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index e9f9e91e8f..30d7e3747e 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -1156,7 +1156,7 @@ ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2)
}
break;
case IS_ARRAY:
- if (zend_hash_compare(op1->value.ht, op2->value.ht, hash_zval_identical_function, 1)==0) {
+ if (zend_hash_compare(op1->value.ht, op2->value.ht, (compare_func_t) hash_zval_identical_function, 1)==0) {
result->value.lval = 1;
} else {
result->value.lval = 0;
@@ -1166,7 +1166,7 @@ ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2)
if (op1->value.obj.ce != op2->value.obj.ce) {
result->value.lval = 0;
} else {
- if (zend_hash_compare(op1->value.obj.properties, op2->value.obj.properties, hash_zval_identical_function, 1)==0) {
+ if (zend_hash_compare(op1->value.obj.properties, op2->value.obj.properties, (compare_func_t) hash_zval_identical_function, 1)==0) {
result->value.lval = 1;
} else {
result->value.lval = 0;
@@ -1549,7 +1549,7 @@ static int hash_zval_compare_function(const zval **z1, const zval **z2)
ZEND_API void zend_compare_symbol_tables(zval *result, HashTable *ht1, HashTable *ht2)
{
result->type = IS_LONG;
- result->value.lval = zend_hash_compare(ht1, ht2, hash_zval_compare_function, 0);
+ result->value.lval = zend_hash_compare(ht1, ht2, (compare_func_t) hash_zval_compare_function, 0);
}