From ea284f335c8d62274cee742b53a62c120ce50a6a Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 24 Mar 2006 13:26:36 +0000 Subject: [PATCH] (sxhash_list): Include last non-nil CDR in hash. --- src/fns.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fns.c b/src/fns.c index bb78b9a407c..404a587b1cf 100644 --- a/src/fns.c +++ b/src/fns.c @@ -5114,6 +5114,12 @@ sxhash_list (list, depth) hash = SXHASH_COMBINE (hash, hash2); } + if (!NILP (list)) + { + unsigned hash2 = sxhash (list, depth + 1); + hash = SXHASH_COMBINE (hash, hash2); + } + return hash; } -- 2.39.2