diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/coding.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d489dcd58b3..4e33ccb0c0d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-04-05 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-05 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int. | ||
| 4 | This avoids several warnings with gcc -Wstrict-overflow. | ||
| 5 | |||
| 3 | * xfont.c (xfont_text_extents): Remove var that was set but not used. | 6 | * xfont.c (xfont_text_extents): Remove var that was set but not used. |
| 4 | (xfont_open): Avoid unnecessary tests. | 7 | (xfont_open): Avoid unnecessary tests. |
| 5 | 8 | ||
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) \ |