diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-13 07:31:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-13 07:31:23 +0000 |
commit | df63f954cfdf948c6501e93fbd06715f7b8f2973 (patch) | |
tree | 1f4a7f5468d82e32e023734a2c6838b6e939838c /vm_insnhelper.c | |
parent | 0b8f36875a8270dade63a25927fcd997b1f4735d (diff) | |
download | ruby-df63f954cfdf948c6501e93fbd06715f7b8f2973.tar.gz ruby-df63f954cfdf948c6501e93fbd06715f7b8f2973.tar.xz ruby-df63f954cfdf948c6501e93fbd06715f7b8f2973.zip |
* insns.def (opt_case_dispatch): suppressed a warning.
* vm_insnhelper.c (opt_case_dispatch_i): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 07aa24468..24f4e0133 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1599,8 +1599,10 @@ struct opt_case_dispatch_i_arg { }; static int -opt_case_dispatch_i(st_data_t key, st_data_t data, struct opt_case_dispatch_i_arg *arg) +opt_case_dispatch_i(st_data_t key, st_data_t data, void *p) { + struct opt_case_dispatch_i_arg *arg = p; + if (RTEST(rb_funcall((VALUE)key, idEqq, 1, arg->obj))) { arg->label = FIX2INT((VALUE)data); return ST_STOP; |