Subject: Re: bug#26639: 26.0.50; gethash can't find value from equal key

From: [email-masked]
Date: Sat, 06 May 2017 12:52:03 -0400

retitle 26639 26.0.50; sxhash gives non-equal values for equal records
tags 26639 confirmed
quit

Andreas Schwab <[email-masked]> writes:

> On Apr 24 2017, Damien Cassou <[email-masked]> wrote:
>
>> (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