]> granicus.if.org Git - php/commitdiff
Fixed compiler warning (pointer mismatch)
authorKalle Sommer Nielsen <kalle@php.net>
Thu, 27 May 2010 23:24:06 +0000 (23:24 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 27 May 2010 23:24:06 +0000 (23:24 +0000)
ext/reflection/php_reflection.c

index c96f7a5bf554cda68aabe681191ddc3d8c5c8039..dd33452def294b240b5b256ba382a273cd025dd9 100644 (file)
@@ -3286,7 +3286,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value
                /* this is necessary to make it able to work with default array 
                * properties, returned to user */
                if (Z_TYPE_P(prop_copy) == IS_CONSTANT_ARRAY || (Z_TYPE_P(prop_copy) & IS_CONSTANT_TYPE_MASK) == IS_CONSTANT) {
-                       zval_update_constant(&prop_copy, 1 TSRMLS_CC);
+                       zval_update_constant(&prop_copy, (void *) 1 TSRMLS_CC);
                }
 
                add_assoc_zval(return_value, key, prop_copy);