summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 01:58:00 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 01:58:00 (GMT)
commit15b88811d6dfb1a406dc5c01282850ad9952fd29 (patch)
tree06d6c8ad75fd8af1552864cab7e4d391c0fcd8f6 /enumerator.c
parent94dfc14ed87f969e84cc1896be56433ede7fe369 (diff)
enumerator.c: fix style
* enumerator.c (enumerator_initialize): no cuddle up else. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 340aa75..b04531b 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -341,7 +341,8 @@ enumerator_initialize(int argc, VALUE *argv, VALUE obj)
if (NIL_P(argv[0]) || rb_obj_is_proc(argv[0]) ||
(RB_TYPE_P(argv[0], T_FLOAT) && RFLOAT_VALUE(argv[0]) == INFINITY)) {
size = argv[0];
- } else {
+ }
+ else {
size = rb_to_int(argv[0]);
}
argc = 0;