From: Paul Eggert Date: Sun, 22 Jul 2012 03:44:35 +0000 (-0700) Subject: * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int, X-Git-Tag: emacs-24.2.90~1105 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fb9ea40fc511eb7e42a512ada9e369cce1bfd932;p=emacs.git * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int, as it's limited by the amount of memory, not by INT_MAX. --- diff --git a/src/ChangeLog b/src/ChangeLog index a1c7eb561a0..6392044ed62 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-07-22 Paul Eggert + + * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int, + as it's limited by the amount of memory, not by INT_MAX. + 2012-07-21 Eli Zaretskii * keyboard.c (keys_of_keyboard): Bind language-change to 'ignore' diff --git a/src/buffer.h b/src/buffer.h index 69be4dc7773..61f9e72fcfd 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -776,9 +776,9 @@ struct buffer struct buffer *base_buffer; /* In an indirect buffer, this is -1. In an ordinary buffer, - it's the number of indirect buffers which shares our text; + it's the number of indirect buffers that share our text; zero means that we're the only owner of this text. */ - int indirections; + ptrdiff_t indirections; /* A non-zero value in slot IDX means that per-buffer variable with index IDX has a local value in this buffer. The index IDX