diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-04 23:24:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-04 23:24:54 -0700 |
commit | b25d760e185c85e190402eddd0d756ddc014a58c (patch) | |
tree | f726f7d9a3d491d19215b4c3cfe98ff06cc636e9 /src/coding.c | |
parent | 625a3eb1e23bd4000230946eadb419d5c454845b (diff) | |
download | emacs-b25d760e185c85e190402eddd0d756ddc014a58c.tar.gz |
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
This avoids several warnings with gcc -Wstrict-overflow.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index b7e8154107c..6e5d0655258 100644 --- a/src/coding.c +++ b/src/coding.c @@ -753,7 +753,7 @@ static struct coding_system coding_categories[coding_category_max]; produced_chars++; \ if (multibytep) \ { \ - int ch = (c); \ + unsigned ch = (c); \ if (ch >= 0x80) \ ch = BYTE8_TO_CHAR (ch); \ CHAR_STRING_ADVANCE (ch, dst); \ @@ -770,7 +770,7 @@ static struct coding_system coding_categories[coding_category_max]; produced_chars += 2; \ if (multibytep) \ { \ - int ch; \ + unsigned ch; \ \ ch = (c1); \ if (ch >= 0x80) \ |