diff options
| author | Kim F. Storm | 2006-03-24 13:26:36 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-03-24 13:26:36 +0000 |
| commit | ea284f335c8d62274cee742b53a62c120ce50a6a (patch) | |
| tree | b18f78dd4b694c59d1ffc670d71bb865bb9990ca /src | |
| parent | 8928c512e43afb739263d26730169c4de3809c06 (diff) | |
| download | emacs-ea284f335c8d62274cee742b53a62c120ce50a6a.tar.gz emacs-ea284f335c8d62274cee742b53a62c120ce50a6a.zip | |
(sxhash_list): Include last non-nil CDR in hash.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -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 | ||