summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-12 05:52:27 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-12 05:52:27 +0000
commitca47fb329a1d48af3e1009620bdb18e931c9f188 (patch)
tree035fb6c0009f1b87273ff6320531a96fe22e53c0 /enumerator.c
parent0a0f8238d02a2dfff4cd2892408e14cb826cec7e (diff)
Revert "enumerator.c: Fix ArithmeticSequence for complex step"
This reverts commit 0a0f8238d02a2dfff4cd2892408e14cb826cec7e. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index 46ded37..2c115aa 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2661,8 +2661,7 @@ arith_seq_each(VALUE self)
s = arith_seq_step(self);
x = arith_seq_exclude_end_p(self);
- if (RB_TYPE_P(c, T_FLOAT) && RB_TYPE_P(s, T_FLOAT) &&
- ruby_float_step(c, e, s, x, TRUE)) {
+ if (ruby_float_step(c, e, s, x, TRUE)) {
return self;
}