aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-07-21 20:44:35 -0700
committerPaul Eggert2012-07-21 20:44:35 -0700
commitfb9ea40fc511eb7e42a512ada9e369cce1bfd932 (patch)
tree06dbb3d36540010e7d8657bcee8207f0f7e43e83
parent37a9eac80c07eec4f17917433bc8c406e812e394 (diff)
downloademacs-fb9ea40fc511eb7e42a512ada9e369cce1bfd932.tar.gz
emacs-fb9ea40fc511eb7e42a512ada9e369cce1bfd932.zip
* buffer.h (struct buffer.indirections): Now ptrdiff_t, not int,
as it's limited by the amount of memory, not by INT_MAX.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a1c7eb561a0..6392044ed62 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-07-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int,
4 as it's limited by the amount of memory, not by INT_MAX.
5
12012-07-21 Eli Zaretskii <eliz@gnu.org> 62012-07-21 Eli Zaretskii <eliz@gnu.org>
2 7
3 * keyboard.c (keys_of_keyboard): Bind language-change to 'ignore' 8 * 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
776 struct buffer *base_buffer; 776 struct buffer *base_buffer;
777 777
778 /* In an indirect buffer, this is -1. In an ordinary buffer, 778 /* In an indirect buffer, this is -1. In an ordinary buffer,
779 it's the number of indirect buffers which shares our text; 779 it's the number of indirect buffers that share our text;
780 zero means that we're the only owner of this text. */ 780 zero means that we're the only owner of this text. */
781 int indirections; 781 ptrdiff_t indirections;
782 782
783 /* A non-zero value in slot IDX means that per-buffer variable 783 /* A non-zero value in slot IDX means that per-buffer variable
784 with index IDX has a local value in this buffer. The index IDX 784 with index IDX has a local value in this buffer. The index IDX