summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index c6a65ff90a..2df56827cc 100644
--- a/gc.c
+++ b/gc.c
@@ -5562,7 +5562,8 @@ gc_stat(int argc, VALUE *argv, VALUE self)
size_t value = 0;
gc_stat_internal(arg, &value);
return SIZET2NUM(value);
- } else if (!RB_TYPE_P(arg, T_HASH)) {
+ }
+ else if (!RB_TYPE_P(arg, T_HASH)) {
rb_raise(rb_eTypeError, "non-hash or symbol given");
}
}
@@ -5581,7 +5582,8 @@ rb_gc_stat(VALUE key)
size_t value = 0;
gc_stat_internal(key, &value);
return value;
- } else {
+ }
+ else {
gc_stat_internal(key, 0);
return 0;
}