POSITION returning incorrect value

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

Bug Description

(defun f340 (p1)
  (position p1 '(string #:g4389630 #:|AABb|)))

(f340 0) ==> 0

x86-64, "2.4.2.82-3d4601189", still present in "2.4.2.91-564aef889"

description: updated
Douglas Katzman (dougk)
Changed in sbcl:
assignee: nobody → Douglas Katzman (dougk)
Revision history for this message
Douglas Katzman (dougk) wrote :
Changed in sbcl:
status: New → Fix Committed
Revision history for this message
xizang (xizang) wrote :

Hi:
my environment is ubuntu sbcl-2.4.2:
(defun f340-equal (p1)
  (position p1 '(string #:g4389630 #:|AABb|) :test #'equal))

(f340-equal 0) => nil

Revision history for this message
xizang (xizang) wrote :

and :
(defun f340-equalp (p1)
  (position p1 '(string #:g4389630 #:|AABb|) :test #'equalp))

(f340-equalp 0) => nil

Revision history for this message
Stas Boukarev (stassats) wrote :

Even though :test EQUALP is turned into :test EQ eventually, the hash transform isn't applied in this case.

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.