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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index be5d479099..1b7cdc86f5 100644 --- a/io.c +++ b/io.c @@ -1091,7 +1091,7 @@ ruby_dup(int orig) static VALUE io_alloc(VALUE klass) { - NEWOBJ_OF(io, struct RFile, klass, T_FILE); + NEWOBJ_OF(io, struct RFile, klass, T_FILE, sizeof(struct RFile), 0); io->fptr = 0; -- cgit v1.2.1