summaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 07:26:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 07:26:26 +0000
commit23472d2b2a3e12045eb5aa9c8fecd3db9da3def6 (patch)
tree12c5b178a21d50e7c597623392fb30b46b34f803 /vm_insnhelper.c
parentc4c4df9fd7422dcc570cdb88bfb1b460b93e8fed (diff)
downloadruby-23472d2b2a3e12045eb5aa9c8fecd3db9da3def6.tar.gz
ruby-23472d2b2a3e12045eb5aa9c8fecd3db9da3def6.tar.xz
ruby-23472d2b2a3e12045eb5aa9c8fecd3db9da3def6.zip
* insns.def (opt_case_dispatch): runtime value cannot be used as
an element initializer. * vm_insnhelper.c (opt_case_dispatch_i): gets rid of type-punning calls. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);