Skip to content

Commit

Permalink
Fix for #56: bug comparing tails of dotted lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
slburson committed Jul 31, 2024
1 parent debf632 commit 7a2cb81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Code/order.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ This is the right choice for the vast majority of mutable classes."))
(default ':equal))
((or (atom a) (atom b))
(let ((comp (compare a b)))
(if (or (eq comp ':less) (eq comp ':greater))
comp
default)))
(if (eq comp ':equal) default comp)))
(when (eq a b) ; we could get lucky
(return default))
(let ((comp (compare (car a) (car b))))
Expand Down

0 comments on commit 7a2cb81

Please sign in to comment.