diff options
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r-- | ext/dl/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index dddd8d54e9..3e3b91a8c9 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -305,7 +305,7 @@ dlhandle_sym(void *handle, const char *name) void (*func)(); rb_secure(2); - func = dlsym(handle, name); + func = (void (*)())(VALUE)dlsym(handle, name); CHECK_DLERROR; #if defined(FUNC_STDCALL) if( !func ){ |