summaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 3654e3989..a05574f1d 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1645,9 +1645,9 @@ struct opt_case_dispatch_i_arg {
};
static int
-opt_case_dispatch_i(st_data_t key, st_data_t data, void *p)
+opt_case_dispatch_i(st_data_t key, st_data_t data, st_data_t p)
{
- struct opt_case_dispatch_i_arg *arg = p;
+ struct opt_case_dispatch_i_arg *arg = (void *)p;
if (RTEST(rb_funcall((VALUE)key, idEqq, 1, arg->obj))) {
arg->label = FIX2INT((VALUE)data);