diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 9 |
2 files changed, 5 insertions, 8 deletions
@@ -1,3 +1,7 @@ +Thu May 16 03:05:45 2013 Koichi Sasada <ko1@atdot.net> + + * gc.c (rb_node_newnode): use newobj_of() instead of rb_newobj(). + Thu May 16 02:03:39 2013 Tanaka Akira <akr@fsij.org> * ext/socket/depend: Add a dependency for ifaddr.o. @@ -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; } |