diff options
Diffstat (limited to 'ext/dl/sym.c')
-rw-r--r-- | ext/dl/sym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/sym.c b/ext/dl/sym.c index bc51ebe102..3326d6743f 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -140,7 +140,7 @@ rb_dlsym_s_new(int argc, VALUE argv[], VALUE self) sname = NIL_P(name) ? NULL : StringValuePtr(name); stype = NIL_P(type) ? NULL : StringValuePtr(type); - val = rb_dlsym_new(saddr, sname, stype); + val = rb_dlsym_new((void (*)())saddr, sname, stype); if( val != Qnil ){ rb_obj_call_init(val, argc, argv); |