mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (append_method): use RARRAY_CONST_PTR().
* enumerator.c (lazy_init_iterator): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74f424c26a
commit
eb86296497
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Nov 8 10:49:34 2013 Masaki Matsushita <glass.saga@gmail.com>
|
||||
|
||||
* enumerator.c (append_method): use RARRAY_CONST_PTR().
|
||||
|
||||
* enumerator.c (lazy_init_iterator): ditto.
|
||||
|
||||
Fri Nov 8 02:44:29 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (vm_malloc_increase): check GVL before gc_rest_sweep().
|
||||
|
|
|
@ -990,7 +990,7 @@ append_method(VALUE obj, VALUE str, ID default_method, VALUE default_args)
|
|||
}
|
||||
if (eargs != Qfalse) {
|
||||
long argc = RARRAY_LEN(eargs);
|
||||
VALUE *argv = RARRAY_PTR(eargs);
|
||||
const VALUE *argv = RARRAY_CONST_PTR(eargs); /* WB: no new reference */
|
||||
|
||||
if (argc > 0) {
|
||||
rb_str_buf_cat2(str, "(");
|
||||
|
@ -1336,7 +1336,7 @@ lazy_init_iterator(VALUE val, VALUE m, int argc, VALUE *argv)
|
|||
if (argc > 0) {
|
||||
rb_ary_cat(args, argv, argc);
|
||||
}
|
||||
result = rb_yield_values2(len, RARRAY_PTR(args));
|
||||
result = rb_yield_values2(len, RARRAY_CONST_PTR(args));
|
||||
RB_GC_GUARD(args);
|
||||
}
|
||||
if (result == Qundef) rb_iter_break();
|
||||
|
|
Loading…
Add table
Reference in a new issue