summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-09 04:23:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-09 04:23:20 +0000
commit47c2b02f2b6e363cdf2c1014ce139fedaa69c77a (patch)
treedde2f9aa1ffd81e3c50550fe9be42d64b77dd346 /vm_insnhelper.c
parente44aeea84a9db35c0759937c22c36e0f2774a68a (diff)
* vm_insnhelper.c (check_cfunc): use function pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 39b379429f..b3815b692c 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1441,7 +1441,7 @@ vm_expandarray(rb_control_frame_t *cfp, VALUE ary, int num, int flag)
}
static inline int
-check_cfunc(const NODE *mn, const void *func)
+check_cfunc(const NODE *mn, VALUE (*func)())
{
if (mn && nd_type(mn->nd_body) == NODE_CFUNC &&
mn->nd_body->nd_cfnc == func) {