diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-21 09:10:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-21 09:10:23 +0000 |
commit | 87af442f946da3b5ab3bc8fb351824ec8c240fe7 (patch) | |
tree | 792f75b9f15c0da49ecf99a8512ccd5581f59733 /ext/dl/cptr.c | |
parent | c6b6293bc13b9107cad52f407810cddc4dd0b475 (diff) |
* suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r-- | ext/dl/cptr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |