diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -837,8 +837,7 @@ ruby_dup(int orig) static VALUE io_alloc(VALUE klass) { - NEWOBJ(io, struct RFile); - OBJSETUP(io, klass, T_FILE); + NEWOBJ_OF(io, struct RFile, klass, T_FILE); io->fptr = 0; |