diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-17 07:26:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-17 07:26:26 +0000 |
commit | 9e68d0dc03456fe6c074143c3b14aef3d4a7b565 (patch) | |
tree | 12c5b178a21d50e7c597623392fb30b46b34f803 /insns.def | |
parent | 5a8c6a5c93a79bedb1b859461396ef2037aef18b (diff) | |
download | ruby-9e68d0dc03456fe6c074143c3b14aef3d4a7b565.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@25818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1247,10 +1247,10 @@ opt_case_dispatch } } else { - struct opt_case_dispatch_i_arg arg = { - key, -1 - }; + struct opt_case_dispatch_i_arg arg; + arg.obj = key; + arg.label = -1; st_foreach(RHASH_TBL(hash), opt_case_dispatch_i, (st_data_t)&arg); if (arg.label != -1) { |