summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 16:32:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 16:32:53 +0000
commit15023618ec2b3a04f9cd1022187b11672ea6b71d (patch)
tree4ef3f29238a51b7d0400aca2458f09f2045595e9 /vm_insnhelper.c
parentcc0c85e0c0c676b03f5e64e52df340e38c589648 (diff)
merges r20590 from trunk into ruby_1_9_1.
* vm_insnhelper.c (check_cfunc): use function pointer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21055 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 71a673e37e..28eaeb7951 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1447,7 +1447,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) {