* buffer.c (overlay_str_len): Now ptrdiff_t, not EMACS_INT,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Aug 2011 19:23:11 +0000 (12:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Aug 2011 19:23:11 +0000 (12:23 -0700)
since either will do and ptrdiff_t is convenient with xpalloc.

src/ChangeLog
src/buffer.c

index 5954254..8285137 100644 (file)
@@ -2,6 +2,9 @@
 
        Integer and memory overflow issues (Bug#9196).
 
+       * buffer.c (overlay_str_len): Now ptrdiff_t, not EMACS_INT,
+       since either will do and ptrdiff_t is convenient with xpalloc.
+
        * charset.c (charset_table_size)
        (struct charset_sort_data.priority): Now ptrdiff_t.
        (charset_compare): Don't overflow if priorities differ greatly.
index b61d083..5a6484e 100644 (file)
@@ -2943,7 +2943,7 @@ static struct sortstrlist overlay_heads, overlay_tails;
 static unsigned char *overlay_str_buf;
 
 /* Allocated length of overlay_str_buf.  */
-static EMACS_INT overlay_str_len;
+static ptrdiff_t overlay_str_len;
 
 /* A comparison function suitable for passing to qsort.  */
 static int