Fixed compiler warning.
authorDerick Rethans <github@derickrethans.nl>
Tue, 5 Jul 2011 11:37:26 +0000 (12:37 +0100)
committerDerick Rethans <github@derickrethans.nl>
Tue, 5 Jul 2011 11:37:26 +0000 (12:37 +0100)
twig.c

diff --git a/twig.c b/twig.c
index 7c8e7e8..af19a15 100644 (file)
--- a/twig.c
+++ b/twig.c
@@ -278,7 +278,7 @@ zval *TWIG_GET_ARRAY_ELEMENT_ZVAL(zval *class, zval *prop_name)
        }
        tmp_name = Z_STRVAL_P(prop_name);
 
-       if (zend_hash_find(HASH_OF(class), tmp_name, strlen(tmp_name)+1, &tmp_zval) == SUCCESS) {
+       if (zend_hash_find(HASH_OF(class), tmp_name, strlen(tmp_name)+1, (void**) &tmp_zval) == SUCCESS) {
                return tmp_zval;
        }
        return NULL;