diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 14:03:38 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 14:03:38 +0000 |
commit | 2950c7a919aecaf892446d7d2edf5ad85b8369ae (patch) | |
tree | 4e75052144f2f7fc36ea5b7bf2249a87c585486c /string.c | |
parent | 39a241cec6a1761c7d4dccc5c155a2a83f7b6143 (diff) |
* string.c (rb_str_format_m): make tmp volatile to avoid possible GC
problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -957,7 +957,7 @@ rb_str_times(VALUE str, VALUE times) static VALUE rb_str_format_m(VALUE str, VALUE 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); |