diff options
author | Matt Valentine-House <[email protected]> | 2023-02-17 15:51:16 +0000 |
---|---|---|
committer | Matt Valentine-House <[email protected]> | 2023-04-06 11:07:16 +0100 |
commit | 026321c5b976c5e95731046b94555b1226198be4 (patch) | |
tree | 35ba000a654e41ede4ccb9a30322f08b748cb2f7 /hash.c | |
parent | 879cda98a4cdce91d736ea9ba81168effe090718 (diff) |
[Feature #19474] Refactor NEWOBJ macros
NEWOBJ_OF is now our canonical newobj macro. It takes an optional ec
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7393
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1498,7 +1498,7 @@ static VALUE hash_alloc_flags(VALUE klass, VALUE flags, VALUE ifnone) { const VALUE wb = (RGENGC_WB_PROTECTED_HASH ? FL_WB_PROTECTED : 0); - NEWOBJ_OF(hash, struct RHash, klass, T_HASH | wb | flags); + NEWOBJ_OF(hash, struct RHash, klass, T_HASH | wb | flags, sizeof(struct RHash), 0); RHASH_SET_IFNONE((VALUE)hash, ifnone); |