diff options
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index 2c115aa740..ad76564484 100644 --- a/enumerator.c +++ b/enumerator.c @@ -2661,7 +2661,7 @@ arith_seq_each(VALUE self) s = arith_seq_step(self); x = arith_seq_exclude_end_p(self); - if (ruby_float_step(c, e, s, x, TRUE)) { + if (!RB_TYPE_P(s, T_COMPLEX) && ruby_float_step(c, e, s, x, TRUE)) { return self; } |