Project

General

Profile

Actions

Bug #19160

closed

cmp_clamp arguments

Added by kaiquekandykoga (Kaíque Koga) about 2 years ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-freebsd13.1]
[ruby-core:111074]

Description

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.

Updated by jemmai (Jemma Issroff) about 1 year ago

  • Status changed from Open to Closed

Fix was merged, so this can be closed.

Actions

Also available in: Atom PDF

Like0
Like0