]> git.eshelyaron.com Git - emacs.git/commitdiff
* Improve reproducibility of inferred values by native comp
authorAndrea Corallo <acorallo@gnu.org>
Sun, 11 Feb 2024 09:43:57 +0000 (10:43 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:00:54 +0000 (14:00 +0100)
* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to
reorder conses using 'sxhash-equal' as its behavior is not reproducible
over different sessions.

(cherry picked from commit 614b244a7fa03fcb27d76757e14ef0fa895d6f23)

lisp/emacs-lisp/comp-cstr.el

index 2984bedb1ddfd2c3ea6ad8ed85b6fa5c977e7316..0bc97e51592a6350ea8cd3036a0941179820e768 100644 (file)
@@ -249,6 +249,8 @@ Return them as multiple value."
                t)
               ((and (not (symbolp x)) (symbolp y))
                nil)
+              ((or (consp x) (consp y)
+                   nil))
               (t
                (< (sxhash-equal x)
                   (sxhash-equal y)))))))