diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-10-07 19:03:33 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-10-07 19:03:33 +0400 |
commit | bd74250fd7b09431788d1745cee23a2c6de6deeb (patch) | |
tree | c9d1da41e5fe33a03ab4e3b792bfc02dc26f673b /src/insdel.c | |
parent | da3e5ebb8d6b69f82191ac6e6dc63926f210db68 (diff) |
* insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c index ebd096a292..0eb80c04d9 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; |