From: Dmitry Antipov Date: Mon, 7 Oct 2013 15:03:33 +0000 (+0400) Subject: * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1352 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd74250fd7b09431788d1745cee23a2c6de6deeb;p=emacs.git * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed. --- 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;