mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (opt_case_dispatch): use st_data_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc6d58ccc4
commit
dc647aea2e
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 13 22:51:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* insns.def (opt_case_dispatch): use st_data_t.
|
||||
|
||||
Wed Oct 13 22:32:34 2010 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
|
||||
|
||||
* lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibyte
|
||||
|
|
|
@ -1272,9 +1272,9 @@ opt_case_dispatch
|
|||
case T_BIGNUM:
|
||||
case T_STRING:
|
||||
if (BASIC_OP_UNREDEFINED_P(BOP_EQQ)) {
|
||||
VALUE val;
|
||||
st_data_t val;
|
||||
if (st_lookup(RHASH_TBL(hash), key, &val)) {
|
||||
JUMP(FIX2INT(val));
|
||||
JUMP(FIX2INT((VALUE)val));
|
||||
}
|
||||
else {
|
||||
JUMP(else_offset);
|
||||
|
|
Loading…
Reference in a new issue