From c5958d4cf336fdbc30364e7d701d6565acaf4002 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 12 Jun 2011 17:36:44 -0700 Subject: [PATCH] * character.c (char_string): Remove unnecessary casts. --- src/ChangeLog | 1 + src/character.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f8a4abd9cce..01068fea0be 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,6 @@ 2011-06-13 Paul Eggert + * 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, diff --git a/src/character.c b/src/character.c index aae3e3c0de6..70c0637804b 100644 --- a/src/character.c +++ b/src/character.c @@ -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; } -- 2.39.2