Commit 27bb1ca4 authored by Paul Eggert's avatar Paul Eggert

* coding.c (produce_chars): Use ptrdiff_t, not int.

parent 9a900ca9
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.
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment