Use mrb_write_barrier() instead of mrb_field_write_barrier_value()

ref #3409
parent fdec607c
......@@ -656,9 +656,7 @@ mrb_ary_splice(mrb_state *mrb, mrb_value ary, mrb_int head, mrb_int len, mrb_val
value_move(a->ptr + head, argv, argc);
}
}
for (i = 0; i < argc; i++) {
mrb_field_write_barrier_value(mrb, (struct RBasic*)a, argv[i]);
}
mrb_write_barrier(mrb, (struct RBasic*)a);
return ary;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment