From 3b77b5fd394f9c9ba841e7bea8ea62dc6e8a3a1b Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Tue, 9 Jul 2019 02:08:14 -0700 Subject: Revert Float dependency in Range#each --- mrblib/range.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mrblib/range.rb b/mrblib/range.rb index 3e6dbfb24..392cc2274 100644 --- a/mrblib/range.rb +++ b/mrblib/range.rb @@ -15,8 +15,7 @@ class Range val = self.first last = self.last - # numerics are special - if (val.kind_of?(Fixnum) || val.kind_of?(Float)) && (last.kind_of?(Fixnum) || last.kind_of?(Float)) + if val.kind_of?(Fixnum) && last.kind_of?(Fixnum) # fixnums are special lim = last lim += 1 unless exclude_end? i = val -- cgit v1.2.3