* buffer.h (struct buffer.indirections): Now ptrdiff_t, not int,

as it's limited by the amount of memory, not by INT_MAX.
This commit is contained in:
Paul Eggert 2012-07-21 20:44:35 -07:00
parent 37a9eac80c
commit fb9ea40fc5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-07-22 Paul Eggert <eggert@cs.ucla.edu>
* 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 <eliz@gnu.org>
* keyboard.c (keys_of_keyboard): Bind language-change to 'ignore'

View file

@ -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