Permalink
Browse files

Use mrb_write_barrier() instead of mrb_field_write_barrier_value()

ref #3409
  • Loading branch information...
matz committed Jan 23, 2017
1 parent fdec607 commit 49fd7590df4f510c611f31652235887c0aaaa962
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/array.c
View
@@ -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;
}

0 comments on commit 49fd759

Please sign in to comment.