aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/coding.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 662aa5232ab..ded14de2c41 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12012-06-17 Paul Eggert <eggert@cs.ucla.edu> 12012-06-17 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * coding.c (produce_chars): Use ptrdiff_t, not int.
4
3 * xterm.c (x_draw_underwave): Check for integer overflow. 5 * xterm.c (x_draw_underwave): Check for integer overflow.
4 This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64. 6 This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
5 7
diff --git a/src/coding.c b/src/coding.c
index ab13f0311c0..64826ae16b9 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6765,7 +6765,8 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
6765 6765
6766 while (buf < buf_end) 6766 while (buf < buf_end)
6767 { 6767 {
6768 int c = *buf, i; 6768 int c = *buf;
6769 ptrdiff_t i;
6769 6770
6770 if (c >= 0) 6771 if (c >= 0)
6771 { 6772 {