changeset 69655:b1e3b0da5945

(sxhash_list): Include last non-nil CDR in hash.
author Kim F. Storm <storm@cua.dk>
date Fri, 24 Mar 2006 13:26:36 +0000
parents 7d2621d0d5e4
children e704de29521a
files src/fns.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fns.c	Fri Mar 24 12:38:31 2006 +0000
+++ b/src/fns.c	Fri Mar 24 13:26:36 2006 +0000
@@ -5114,6 +5114,12 @@
 	hash = SXHASH_COMBINE (hash, hash2);
       }
 
+  if (!NILP (list))
+    {
+      unsigned hash2 = sxhash (list, depth + 1);
+      hash = SXHASH_COMBINE (hash, hash2);
+    }
+
   return hash;
 }