aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-09-24 18:28:59 -0700
committerPaul Eggert2011-09-24 18:28:59 -0700
commit47664caabe10c081360a1dcf58492163e9f5b43c (patch)
tree473c3b55ce68697e7f001bbbdb60b39821e6ca17 /src
parent60ad3eab6fe6e4278cf7674606357bd8d79c5d68 (diff)
downloademacs-47664caabe10c081360a1dcf58492163e9f5b43c.tar.gz
emacs-47664caabe10c081360a1dcf58492163e9f5b43c.zip
* coding.c (ENCODE_ISO_CHARACTER): Use unsigned, not int,
to store the unsigned result of ENCODE_CHAR.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/coding.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2e632bc5ad8..d3ab346a380 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -169,6 +169,8 @@
169 Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. 169 Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
170 (Ffind_operation_coding_system): NATNUMP can eval its arg twice. 170 (Ffind_operation_coding_system): NATNUMP can eval its arg twice.
171 (Fdefine_coding_system_internal): Check for charset-id overflow. 171 (Fdefine_coding_system_internal): Check for charset-id overflow.
172 (ENCODE_ISO_CHARACTER): Use unsigned, not int, to store the unsigned
173 result of ENCODE_CHAR.
172 * coding.h: Adjust decls to match defn changes elsewhere. 174 * coding.h: Adjust decls to match defn changes elsewhere.
173 (struct coding_system): 175 (struct coding_system):
174 Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. 176 Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough.
diff --git a/src/coding.c b/src/coding.c
index 704d26f3f9b..44506476794 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4185,7 +4185,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
4185 4185
4186#define ENCODE_ISO_CHARACTER(charset, c) \ 4186#define ENCODE_ISO_CHARACTER(charset, c) \
4187 do { \ 4187 do { \
4188 int code = ENCODE_CHAR ((charset), (c)); \ 4188 unsigned code = ENCODE_CHAR ((charset), (c)); \
4189 \ 4189 \
4190 if (CHARSET_DIMENSION (charset) == 1) \ 4190 if (CHARSET_DIMENSION (charset) == 1) \
4191 ENCODE_ISO_CHARACTER_DIMENSION1 ((charset), code); \ 4191 ENCODE_ISO_CHARACTER_DIMENSION1 ((charset), code); \