summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 07:18:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 07:18:24 +0000
commiteeb39e0152f94aaaf3b503f6719ce5b6c50a1481 (patch)
treec8a34d3ed2c0bf1625b20ed19d672c01e2632fd4 /gc.c
parent71f3943558343683d8f1099c6f0d4be130829e34 (diff)
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 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 8c7db09f7b..e323a5005c 100644
--- a/gc.c
+++ b/gc.c
@@ -1255,7 +1255,8 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
if (RCLASS_EXT(obj)->subclasses) {
if (BUILTIN_TYPE(obj) == T_MODULE) {
rb_class_detach_module_subclasses(obj);
- } else {
+ }
+ else {
rb_class_detach_subclasses(obj);
}
RCLASS_EXT(obj)->subclasses = NULL;