From 026321c5b976c5e95731046b94555b1226198be4 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Fri, 17 Feb 2023 15:51:16 +0000 Subject: [Feature #19474] Refactor NEWOBJ macros NEWOBJ_OF is now our canonical newobj macro. It takes an optional ec --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index efdf63f56e..819f1a8258 100644 --- a/struct.c +++ b/struct.c @@ -839,7 +839,7 @@ static VALUE struct_alloc(VALUE klass) { long n; - NEWOBJ_OF(st, struct RStruct, klass, T_STRUCT | (RGENGC_WB_PROTECTED_STRUCT ? FL_WB_PROTECTED : 0)); + NEWOBJ_OF(st, struct RStruct, klass, T_STRUCT | (RGENGC_WB_PROTECTED_STRUCT ? FL_WB_PROTECTED : 0), sizeof(struct RStruct), 0); n = num_members(klass); -- cgit v1.2.1