* character.c (char_string): Remove unnecessary casts.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 00:36:44 +0000 (17:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 00:36:44 +0000 (17:36 -0700)
src/ChangeLog
src/character.c

index f8a4abd..01068fe 100644 (file)
@@ -1,5 +1,6 @@
 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,
index aae3e3c..70c0637 100644 (file)
@@ -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;
     }