Unverified Commit 626c2146 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4585 from shuujii/fix-range-min-with-mruby-range-ext

Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`
parents 7172231b cdf5e396
......@@ -53,7 +53,6 @@ class Range
# fast path for numerics
if val.kind_of?(Numeric) && last.kind_of?(Numeric)
raise TypeError if exclude_end? && !last.kind_of?(Fixnum)
return nil if val > last
return nil if val == last && exclude_end?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment