aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-04 23:24:54 -0700
committerPaul Eggert2011-04-04 23:24:54 -0700
commitb25d760e185c85e190402eddd0d756ddc014a58c (patch)
treef726f7d9a3d491d19215b4c3cfe98ff06cc636e9 /src/coding.c
parent625a3eb1e23bd4000230946eadb419d5c454845b (diff)
downloademacs-b25d760e185c85e190402eddd0d756ddc014a58c.tar.gz
emacs-b25d760e185c85e190402eddd0d756ddc014a58c.zip
* 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.c4
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];
753 produced_chars++; \ 753 produced_chars++; \
754 if (multibytep) \ 754 if (multibytep) \
755 { \ 755 { \
756 int ch = (c); \ 756 unsigned ch = (c); \
757 if (ch >= 0x80) \ 757 if (ch >= 0x80) \
758 ch = BYTE8_TO_CHAR (ch); \ 758 ch = BYTE8_TO_CHAR (ch); \
759 CHAR_STRING_ADVANCE (ch, dst); \ 759 CHAR_STRING_ADVANCE (ch, dst); \
@@ -770,7 +770,7 @@ static struct coding_system coding_categories[coding_category_max];
770 produced_chars += 2; \ 770 produced_chars += 2; \
771 if (multibytep) \ 771 if (multibytep) \
772 { \ 772 { \
773 int ch; \ 773 unsigned ch; \
774 \ 774 \
775 ch = (c1); \ 775 ch = (c1); \
776 if (ch >= 0x80) \ 776 if (ch >= 0x80) \