diff --git a/zend/module.h b/zend/module.h index 8f3d832d..4fa6bcef 100644 --- a/zend/module.h +++ b/zend/module.h @@ -92,7 +92,7 @@ class Module virtual ~Module() { // if the handle is still valid, we have to unload it - if (_handle) DL_UNLOAD(_handle); + if (_handle) DL_UNLOAD((DL_HANDLE)_handle); } /** diff --git a/zend/symbol.h b/zend/symbol.h index fcad9eb4..6a470bd2 100644 --- a/zend/symbol.h +++ b/zend/symbol.h @@ -99,7 +99,7 @@ class Symbol * @param name Name of the function */ Symbol(void *handle, const char *name) : - _method(DL_FETCH_SYMBOL(handle, name)) {} + _method(DL_FETCH_SYMBOL((DL_HANDLE)handle, name)) {} /** * Destructor