diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:33:59 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:33:59 +0000 |
commit | b3f0632590aa73ed84cec022b43718e2b94dfbfb (patch) | |
tree | 12da46385fb04b39e2f3badb876833709d444e5f /string.c | |
parent | 3ac9914334ca12c9cc6d6312b6e1ad7091fde4a3 (diff) |
merge revision(s) 17719:
* 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_7@18114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |