1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-07-15 22:17:31 +00:00
parent 192c936e23
commit c2b34e34cb
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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 {