summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-23 12:18:51 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-23 12:18:51 +0000
commit8a684f67feb988ac2ca39a58e286ac7d85ebcac3 (patch)
tree631fc27bba499e9103e55ae3e75ca2458ae91051 /dln.c
parentef8f24d06ebb9a4c4964d265d9be459249efc9ac (diff)
merges r27944 from trunk into ruby_1_9_2.
-- * suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 04d1fa212c..438d263080 100644
--- a/dln.c
+++ b/dln.c
@@ -1278,7 +1278,7 @@ dln_load(const char *file)
goto failed;
}
- init_fct = (void(*)())dlsym(handle, buf);
+ init_fct = (void(*)())(VALUE)dlsym(handle, buf);
#if defined __SYMBIAN32__
if (init_fct == NULL) {
init_fct = (void(*)())dlsym(handle, "1"); /* Some Symbian versions do not support symbol table in DLL, ordinal numbers only */