]> git.eshelyaron.com Git - emacs.git/commitdiff
* insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 7 Oct 2013 15:03:33 +0000 (19:03 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 7 Oct 2013 15:03:33 +0000 (19:03 +0400)
src/ChangeLog
src/insdel.c

index 7483748919d94922b28172fd4841fcb477af84c0..322629f41c05ac764a65de45f83ae0b94c90cf93 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-07  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed.
+
 2013-10-07  Paul Eggert  <eggert@cs.ucla.edu>
 
        emacs_read and emacs_write now use void *, not char *.
index ebd096a2927183fbe623a15e591b613d30aefa21..0eb80c04d990758499cb675151fb3c503cd6d571 100644 (file)
@@ -988,8 +988,7 @@ insert_from_string_1 (Lisp_Object string, ptrdiff_t pos, ptrdiff_t pos_byte,
 void
 insert_from_gap (ptrdiff_t nchars, ptrdiff_t nbytes, bool text_at_gap_tail)
 {
-  int ins_charpos = GPT;
-  int ins_bytepos = GPT_BYTE;
+  ptrdiff_t ins_charpos = GPT, ins_bytepos = GPT_BYTE;
 
   if (NILP (BVAR (current_buffer, enable_multibyte_characters)))
     nchars = nbytes;