mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_format_m): use RARRAY_RAWPTR() instead of
RARRAY_PTR() because there is no new reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3aea31c101
commit
e0932e3ad3
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 8 19:56:52 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* string.c (rb_str_format_m): use RARRAY_RAWPTR() instead of
|
||||
RARRAY_PTR() because there is no new reference.
|
||||
|
||||
Thu Aug 8 19:55:51 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.
|
||||
|
|
2
string.c
2
string.c
|
@ -1309,7 +1309,7 @@ rb_str_format_m(VALUE str, VALUE arg)
|
|||
volatile VALUE tmp = rb_check_array_type(arg);
|
||||
|
||||
if (!NIL_P(tmp)) {
|
||||
return rb_str_format(RARRAY_LENINT(tmp), RARRAY_PTR(tmp), str);
|
||||
return rb_str_format(RARRAY_LENINT(tmp), RARRAY_RAWPTR(tmp), str);
|
||||
}
|
||||
return rb_str_format(1, &arg, str);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue