Incorrect result w. integer comparisons

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

Bug Description

This is on x86-64

(defun f (a b)
  (declare (type (integer -85 6256) a))
  (declare (type (integer -14791607263799215929 14584958923992435760) b))
  (let ((v2 (abs b)))
     (if (> a v2)
         a
         (if (>= a v2)
             a
             0))))

(defun bug091 ()
  (f 3448 10787348803985068423))

(bug091) ==> 3448 (should be 0)

description: updated
Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

I am not seeing any more failures on this in random testing.

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.