diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-15 22:17:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-15 22:17:31 +0000 |
commit | c2b34e34cbca5d8c10f6ed9af96b9ff1d998e6a5 (patch) | |
tree | 955ef399cd28bcee931391a215f6932c9e542abe | |
parent | 192c936e2317286fa428a76a4018c9082d11c828 (diff) | |
download | ruby-c2b34e34cbca5d8c10f6ed9af96b9ff1d998e6a5.tar.gz |
* insns.def (getspecial): lfp_svar_get() requires int for special
global variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | insns.def | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Jul 16 07:17:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * insns.def (getspecial): lfp_svar_get() requires int for special + global variables. + Mon Jul 16 05:45:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * sprintf.c (rb_f_sprintf): more checks for format argument. @@ -85,6 +85,7 @@ getspecial (VALUE val) { if (type == 0) { + if (FIXNUM_P(key)) key = FIX2INT(key); val = lfp_svar_get(th, GET_LFP(), key); } else { |