diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/coding.c | 2 |
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); \ |