From 87af442f946da3b5ab3bc8fb351824ec8c240fe7 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 May 2010 09:10:23 +0000 Subject: * suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/cptr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/dl/cptr.c') diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index 5edd13cc97..2a34a704e2 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -16,9 +16,9 @@ get_freefunc(VALUE func) return NULL; } if (rb_dlcfunc_kind_p(func)) { - return RCFUNC_DATA(func)->ptr; + return (freefunc_t)(VALUE)RCFUNC_DATA(func)->ptr; } - return NUM2PTR(rb_Integer(func)); + return (freefunc_t)(VALUE)NUM2PTR(rb_Integer(func)); } static ID id_to_ptr; -- cgit v1.2.3