aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-03-24 13:26:36 +0000
committerKim F. Storm2006-03-24 13:26:36 +0000
commitea284f335c8d62274cee742b53a62c120ce50a6a (patch)
treeb18f78dd4b694c59d1ffc670d71bb865bb9990ca /src
parent8928c512e43afb739263d26730169c4de3809c06 (diff)
downloademacs-ea284f335c8d62274cee742b53a62c120ce50a6a.tar.gz
emacs-ea284f335c8d62274cee742b53a62c120ce50a6a.zip
(sxhash_list): Include last non-nil CDR in hash.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c6
1 files changed, 6 insertions, 0 deletions
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)
5114 hash = SXHASH_COMBINE (hash, hash2); 5114 hash = SXHASH_COMBINE (hash, hash2);
5115 } 5115 }
5116 5116
5117 if (!NILP (list))
5118 {
5119 unsigned hash2 = sxhash (list, depth + 1);
5120 hash = SXHASH_COMBINE (hash, hash2);
5121 }
5122
5117 return hash; 5123 return hash;
5118} 5124}
5119 5125