aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 22:17:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 22:17:31 +0000
commitc2b34e34cbca5d8c10f6ed9af96b9ff1d998e6a5 (patch)
tree955ef399cd28bcee931391a215f6932c9e542abe
parent192c936e2317286fa428a76a4018c9082d11c828 (diff)
downloadruby-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--ChangeLog5
-rw-r--r--insns.def1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 57451b84c9..5068eafe38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/insns.def b/insns.def
index c629386f39..21c7368bfb 100644
--- a/insns.def
+++ b/insns.def
@@ -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 {