]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (produce_chars): Use ptrdiff_t, not int.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)
src/ChangeLog
src/coding.c

index 662aa5232ab50ef5c92a4f22ec04adcc3377e69e..ded14de2c4138ef706c366992554b31d455df82e 100644 (file)
@@ -1,5 +1,7 @@
 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * 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.
 
index ab13f0311c0db202b24c038048589c77858f54a4..64826ae16b9a345623f4bf90df4ade269bfdbe6d 100644 (file)
@@ -6765,7 +6765,8 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
 
       while (buf < buf_end)
        {
-         int c = *buf, i;
+         int c = *buf;
+         ptrdiff_t i;
 
          if (c >= 0)
            {