Skip to content

Commit 87680d3

Browse files
committed
hash.c (mrb_hash_rehash): call hash_modify before actual modify; fix mruby#6485
1 parent 213a262 commit 87680d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,7 @@ mrb_hash_merge_m(mrb_state *mrb, mrb_value hash)
18161816
static mrb_value
18171817
mrb_hash_rehash(mrb_state *mrb, mrb_value self)
18181818
{
1819+
hash_modify(mrb, self);
18191820
h_rehash(mrb, mrb_hash_ptr(self));
18201821
return self;
18211822
}

0 commit comments

Comments
 (0)