Issue #19160 has been updated by jemmai (Jemma Issroff).
Status changed from Open to Closed
Fix was merged, so this can be closed.
----------------------------------------
Bug #19160: cmp_clamp arguments
https://bugs.ruby-lang.org/issues/19160#change-105318
* Author: kaiquekandykoga (Kaíque Koga)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-freebsd13.1]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
If clamp receives min higher than max, it will raise an exception. The message says *min
argument must be smaller than max argument* , but min can actually be equal to max too.
Patch
https://github.com/ruby/ruby/pull/6802.
--
https://bugs.ruby-lang.org/