[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108638: * coding.c (produce_chars):
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108638: * coding.c (produce_chars): Use ptrdiff_t, not int. |
Date: |
Sun, 17 Jun 2012 00:57:28 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108638
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2012-06-17 00:57:28 -0700
message:
* coding.c (produce_chars): Use ptrdiff_t, not int.
modified:
src/ChangeLog
src/coding.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-06-17 07:39:50 +0000
+++ b/src/ChangeLog 2012-06-17 07:57:28 +0000
@@ -1,5 +1,7 @@
2012-06-17 Paul Eggert <address@hidden>
+ * coding.c (produce_chars): Use ptrdiff_t, not int.
+
* xterm.c (x_draw_underwave): Check for integer overflow.
This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
=== modified file 'src/coding.c'
--- a/src/coding.c 2012-06-16 12:24:15 +0000
+++ b/src/coding.c 2012-06-17 07:57:28 +0000
@@ -6765,7 +6765,8 @@
while (buf < buf_end)
{
- int c = *buf, i;
+ int c = *buf;
+ ptrdiff_t i;
if (c >= 0)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108638: * coding.c (produce_chars): Use ptrdiff_t, not int.,
Paul Eggert <=