From bd74250fd7b09431788d1745cee23a2c6de6deeb Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 7 Oct 2013 19:03:33 +0400 Subject: [PATCH] * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed. --- src/ChangeLog | 4 ++++ src/insdel.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7483748919d..322629f41c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-10-07 Dmitry Antipov + + * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed. + 2013-10-07 Paul Eggert emacs_read and emacs_write now use void *, not char *. diff --git a/src/insdel.c b/src/insdel.c index ebd096a2927..0eb80c04d99 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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; -- 2.39.2