* gc.c (rb_node_newnode): use newobj_of() instead of rb_newobj().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-05-15 18:07:12 +00:00
parent 0f3206c65b
commit e213a7228f
2 changed files with 5 additions and 8 deletions

View File

@ -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.

9
gc.c
View File

@ -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;
}