diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2015-08-13 13:56:29 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2015-08-13 13:56:29 +0300 |
| commit | 715d5d2855a0c6946ac99f1631a4dd9168b0cbfe (patch) | |
| tree | cf5bf02178ec1946335c301c65a302311a4053ef /Zend/zend_objects_API.h | |
| parent | e5813fedf8c0b7309958d7ed471945d2dbf14998 (diff) | |
| download | php-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_objects_API.h')
| -rw-r--r-- | Zend/zend_objects_API.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h index 5bc7d774bc..4497181add 100644 --- a/Zend/zend_objects_API.h +++ b/Zend/zend_objects_API.h @@ -77,7 +77,7 @@ static zend_always_inline void zend_object_release(zend_object *obj) if (--GC_REFCOUNT(obj) == 0) { zend_objects_store_del(obj); } else if (UNEXPECTED(!GC_INFO(obj))) { - gc_possible_root(&obj->gc); + gc_possible_root((zend_refcounted*)obj); } } |
