mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4585 from shuujii/fix-range-min-with-mruby-range-ext
Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user