Commit c5958d4c authored by Paul Eggert's avatar Paul Eggert

* character.c (char_string): Remove unnecessary casts.

parent 13bdea59
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* character.c (char_string): Remove unnecessary casts.
Make sure a 64-bit char is never passed to CHAR_STRING.
Otherwise, CHAR_STRING would do the wrong thing on a 64-bit platform,
......
......@@ -123,7 +123,7 @@ char_string (unsigned int c, unsigned char *p)
if (c & CHAR_MODIFIER_MASK)
{
c = (unsigned) char_resolve_modifier_mask ((int) c);
c = char_resolve_modifier_mask (c);
/* If C still has any modifier bits, just ignore it. */
c &= ~CHAR_MODIFIER_MASK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment