GNU bug report logs - #26639
26.0.50; sxhash gives non-equal values for equal records

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien <at> cassou.me>

Date: Mon, 24 Apr 2017 14:51:01 UTC

Severity: normal

Tags: confirmed

Merged with 27057

Found in version 26.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: control <at> debbugs.gnu.org
Subject: Re: bug#26639: 26.0.50; gethash can't find value from equal key
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 <schwab <at> linux-m68k.org> writes:

> On Apr 24 2017, Damien Cassou <damien <at> cassou.me> 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




This bug report was last modified 7 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.