mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_format_m): make tmp volatile to avoid possible GC
problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
50ba0ce29e
commit
19c818ca57
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jun 29 23:01:54 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* string.c (rb_str_format_m): make tmp volatile to avoid possible GC
|
||||
problem.
|
||||
|
||||
Sun Jun 29 19:19:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* array.c (rb_ary_fill): check for negative length.
|
||||
|
|
2
string.c
2
string.c
|
@ -462,7 +462,7 @@ static VALUE
|
|||
rb_str_format_m(str, arg)
|
||||
VALUE str, arg;
|
||||
{
|
||||
VALUE tmp = rb_check_array_type(arg);
|
||||
volatile VALUE tmp = rb_check_array_type(arg);
|
||||
|
||||
if (!NIL_P(tmp)) {
|
||||
return rb_str_format(RARRAY_LEN(tmp), RARRAY_PTR(tmp), str);
|
||||
|
|
Loading…
Add table
Reference in a new issue