From: Paul Eggert Date: Mon, 13 Jun 2011 00:36:44 +0000 (-0700) Subject: * character.c (char_string): Remove unnecessary casts. X-Git-Tag: emacs-pretest-24.0.90~104^2~548^2~43 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5958d4cf336fdbc30364e7d701d6565acaf4002;p=emacs.git * character.c (char_string): Remove unnecessary casts. --- 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; }