summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-03-07 21:00:45 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-03-07 21:00:45 +0100
commitb0fd300eb6752ae88f0c4cb5ecb332dc434d0923 (patch)
treed2c65865ea51743da1bd8cf42176340c923e1f92
parent237aa813c0a88093bd7fb0372786cbf6d6471b9d (diff)
parente20ae3eac334a3026b1dc86780854bfa0629dc08 (diff)
Merge pull request #175 from atvise/fix_win_missing_static_cast
Added missing static cast of void* to DL_HANDLE
-rw-r--r--zend/module.h2
-rw-r--r--zend/symbol.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/zend/module.h b/zend/module.h
index 8f3d832..4fa6bce 100644
--- a/zend/module.h
+++ b/zend/module.h
@@ -92,7 +92,7 @@ public:
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 fcad9eb..6a470bd 100644
--- a/zend/symbol.h
+++ b/zend/symbol.h
@@ -99,7 +99,7 @@ public:
* @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