diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-09 04:23:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-09 04:23:20 +0000 |
commit | 47c2b02f2b6e363cdf2c1014ce139fedaa69c77a (patch) | |
tree | dde2f9aa1ffd81e3c50550fe9be42d64b77dd346 | |
parent | e44aeea84a9db35c0759937c22c36e0f2774a68a (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
-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) { |