diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | string.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Aug 8 19:56:52 2013 Koichi Sasada <[email protected]> + + * 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 <[email protected]> * include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT. @@ -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); } |