Incorrect value computed in conditional with numeric comparisons

Bug #1873527 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun bug2020417a (a b)
  (declare (type real a))
  (if (>= a a)
      (= b a)
      t))

(defun bug2020417b (a b)
  (if (>= a a)
      (= b a)
      t))

(defun doit ()
  (values
   (bug2020417a 0 1)
   (bug2020417b 0 1)))

(doit) ==> T, NIL

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.