diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 07:18:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 07:18:24 +0000 |
commit | eeb39e0152f94aaaf3b503f6719ce5b6c50a1481 (patch) | |
tree | c8a34d3ed2c0bf1625b20ed19d672c01e2632fd4 /class.c | |
parent | 71f3943558343683d8f1099c6f0d4be130829e34 (diff) | |
download | ruby-eeb39e0152f94aaaf3b503f6719ce5b6c50a1481.tar.gz |
vm.c: prototype
* vm.c (rb_next_class_sequence): use ANSI style definition and
prorotype declaration, instead of old-K&R style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -241,7 +241,8 @@ rewrite_cref_stack(NODE *node, VALUE old_klass, VALUE new_klass) if (node->nd_clss == old_klass) { new_node = NEW_CREF(new_klass); new_node->nd_next = node->nd_next; - } else { + } + else { new_node = NEW_CREF(node->nd_clss); new_node->nd_next = rewrite_cref_stack(node->nd_next, old_klass, new_klass); } |