summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index 824d561fa7..85a18db703 100644
--- a/gc.c
+++ b/gc.c
@@ -863,15 +863,8 @@ rb_newobj_of(VALUE klass, VALUE flags)
NODE*
rb_node_newnode(enum node_type type, VALUE a0, VALUE a1, VALUE a2)
{
- NODE *n = (NODE*)rb_newobj();
-
- n->flags |= T_NODE;
+ NODE *n = (NODE *)newobj_of(0, T_NODE, a0, a1, a2);
nd_set_type(n, type);
-
- n->u1.value = a0;
- n->u2.value = a1;
- n->u3.value = a2;
-
return n;
}