diff options
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 07aa24468b..24f4e0133d 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; |