[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26639: 26.0.50; gethash can't find value from equal key
From: |
Andreas Schwab |
Subject: |
bug#26639: 26.0.50; gethash can't find value from equal key |
Date: |
Mon, 24 Apr 2017 19:05:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
On Apr 24 2017, Damien Cassou <damien@cassou.me> wrote:
> In emacs built from master today (53f8f4bf), evaluate this in the
> scratch buffer of `emacs -Q`:
>
> (cl-defstruct foo slot1 slot2)
> (setq foo1 (make-foo :slot1 "abc" :slot2 "cba"))
> (setq foo2 (make-foo :slot1 "abc" :slot2 "cba"))
>
> (equal foo1 foo2) ;; should be t
Looks like sxhash doesn't correctly handle records:
(= (sxhash foo1) (sxhash foo2)) => nil
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."