diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm_insnhelper.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Dec 9 13:23:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * vm_insnhelper.c (check_cfunc): use function pointer. + Tue Dec 9 12:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * .gdbinit (rp): fixed typo for T_STRUCT. 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) { |