From 006e3f1939e1e528fb79623ea7a0a97fbe77b3de Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 9 Dec 2008 04:23:20 +0000 Subject: * vm_insnhelper.c (check_cfunc): use function pointer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 39b379429..b3815b692 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) { -- cgit