diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-15 18:07:12 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-15 18:07:12 +0000 |
commit | e213a7228f88d83ecf8253ea1fb939c6f2384136 (patch) | |
tree | 349cd4da83b32c55c61cd3f28523cc97e92a0728 /gc.c | |
parent | 0f3206c65b7c080d0c28354840a367f87ce43a2f (diff) | |
download | ruby-e213a7228f88d83ecf8253ea1fb939c6f2384136.tar.gz |
* 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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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; } |