diff --git a/zend/module.h b/zend/module.h index 7902f8e9..cd411f99 100644 --- a/zend/module.h +++ b/zend/module.h @@ -75,7 +75,7 @@ class Module auto iter = _handles.begin(); // remove the handle - DL_UNLOAD(*iter); + DL_UNLOAD(static_cast(*iter)); // remove from set _handles.erase(iter); @@ -151,7 +151,7 @@ class Module virtual ~Module() { // if the handle is still valid, we have to unload it - if (_handle) DL_UNLOAD((DL_HANDLE)_handle); + if (_handle) DL_UNLOAD(static_cast(_handle)); } /**