diff options
-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 { |