* buffer.c (struct sortvec.priority, struct sortstr.priority):
Now EMACS_INT, not int.
(compare_overlays, cmp_for_strings): Avoid subtraction overflow.
+ (struct sortstr.size, record_overlay_string): Don't truncate size to int.
2011-06-16 Paul Eggert <eggert@cs.ucla.edu>
struct sortstr
{
Lisp_Object string, string2;
- int size;
+ ptrdiff_t size;
EMACS_INT priority;
};
}
static void
-record_overlay_string (struct sortstrlist *ssl, Lisp_Object str, Lisp_Object str2, Lisp_Object pri, int size)
+record_overlay_string (struct sortstrlist *ssl, Lisp_Object str,
+ Lisp_Object str2, Lisp_Object pri, ptrdiff_t size)
{
EMACS_INT nbytes;