Skip to content

Commit

Permalink
use mrb_field_write_barrier_value() in hash.c
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 8, 2014
1 parent b34e24b commit 91cc894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hash.c
Expand Up @@ -221,7 +221,7 @@ mrb_hash_set(mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value val)
kh_value(h, k).n = kh_size(h)-1;
}

mrb_write_barrier(mrb, (struct RBasic*)RHASH(hash));
mrb_field_write_barrier_value(mrb, (struct RBasic*)RHASH(hash), val);
return;
}

Expand Down

0 comments on commit 91cc894

Please sign in to comment.