mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-21 21:20:44 -08:00
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
This avoids several warnings with gcc -Wstrict-overflow.
This commit is contained in:
parent
625a3eb1e2
commit
b25d760e18
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2011-04-05 Paul Eggert <eggert@cs.ucla.edu>
|
2011-04-05 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
|
||||||
|
This avoids several warnings with gcc -Wstrict-overflow.
|
||||||
|
|
||||||
* xfont.c (xfont_text_extents): Remove var that was set but not used.
|
* xfont.c (xfont_text_extents): Remove var that was set but not used.
|
||||||
(xfont_open): Avoid unnecessary tests.
|
(xfont_open): Avoid unnecessary tests.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -753,7 +753,7 @@ static struct coding_system coding_categories[coding_category_max];
|
||||||
produced_chars++; \
|
produced_chars++; \
|
||||||
if (multibytep) \
|
if (multibytep) \
|
||||||
{ \
|
{ \
|
||||||
int ch = (c); \
|
unsigned ch = (c); \
|
||||||
if (ch >= 0x80) \
|
if (ch >= 0x80) \
|
||||||
ch = BYTE8_TO_CHAR (ch); \
|
ch = BYTE8_TO_CHAR (ch); \
|
||||||
CHAR_STRING_ADVANCE (ch, dst); \
|
CHAR_STRING_ADVANCE (ch, dst); \
|
||||||
|
|
@ -770,7 +770,7 @@ static struct coding_system coding_categories[coding_category_max];
|
||||||
produced_chars += 2; \
|
produced_chars += 2; \
|
||||||
if (multibytep) \
|
if (multibytep) \
|
||||||
{ \
|
{ \
|
||||||
int ch; \
|
unsigned ch; \
|
||||||
\
|
\
|
||||||
ch = (c1); \
|
ch = (c1); \
|
||||||
if (ch >= 0x80) \
|
if (ch >= 0x80) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue