aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorStefan Monnier2012-11-08 16:58:55 -0500
committerStefan Monnier2012-11-08 16:58:55 -0500
commit61ddb1b9e10518fe3e5c66a255119de92b48f2a0 (patch)
treed67696d476ffcc35ade15fa8fa3050b7e47e88e5 /src/buffer.c
parent04a2d0d38a2835db6c2e5a74cd7701555a7eb826 (diff)
downloademacs-61ddb1b9e10518fe3e5c66a255119de92b48f2a0.tar.gz
emacs-61ddb1b9e10518fe3e5c66a255119de92b48f2a0.zip
* src/lisp.h (XHASH): Redefine to be imperfect and fit in a Lisp int.
* src/fns.c (hashfn_eq, hashfn_eql, sxhash): * src/profiler.c (hashfn_profiler): Don't use XUINT on non-integers. * src/buffer.c (compare_overlays): Use XLI rather than XHASH.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1d58df54f6f..619a729a859 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3132,8 +3132,8 @@ compare_overlays (const void *v1, const void *v2)
3132 between "equal" overlays. The result can still change between 3132 between "equal" overlays. The result can still change between
3133 invocations of Emacs, but it won't change in the middle of 3133 invocations of Emacs, but it won't change in the middle of
3134 `find_field' (bug#6830). */ 3134 `find_field' (bug#6830). */
3135 if (XHASH (s1->overlay) != XHASH (s2->overlay)) 3135 if (!EQ (s1->overlay, s2->overlay))
3136 return XHASH (s1->overlay) < XHASH (s2->overlay) ? -1 : 1; 3136 return XLI (s1->overlay) < XLI (s2->overlay) ? -1 : 1;
3137 return 0; 3137 return 0;
3138} 3138}
3139 3139