summaryrefslogtreecommitdiff
path: root/Zend/zend_iterators.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-08-13 13:56:29 +0300
committerDmitry Stogov <dmitry@zend.com>2015-08-13 13:56:29 +0300
commit715d5d2855a0c6946ac99f1631a4dd9168b0cbfe (patch)
treecf5bf02178ec1946335c301c65a302311a4053ef /Zend/zend_iterators.c
parente5813fedf8c0b7309958d7ed471945d2dbf14998 (diff)
downloadphp-git-715d5d2855a0c6946ac99f1631a4dd9168b0cbfe.tar.gz
Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.
This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
Diffstat (limited to 'Zend/zend_iterators.c')
-rw-r--r--Zend/zend_iterators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_iterators.c b/Zend/zend_iterators.c
index 8914f08121..f42ddf63b9 100644
--- a/Zend/zend_iterators.c
+++ b/Zend/zend_iterators.c
@@ -81,7 +81,7 @@ ZEND_API void zend_iterator_init(zend_object_iterator *iter)
ZEND_API void zend_iterator_dtor(zend_object_iterator *iter)
{
- if (--GC_REFCOUNT(iter) > 0) {
+ if (--GC_REFCOUNT(&iter->std) > 0) {
return;
}