Revert Float dependency in Range#each

This commit is contained in:
Ryan Lopopolo
2019-07-09 02:08:14 -07:00
parent 56929362f5
commit 3b77b5fd39
+1 -2
View File
@@ -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