changeset 90798:ad70c7654800

(CHAR_STRING): Cast C to unsigned on calling char_string.
author Kenichi Handa <handa@m17n.org>
date Wed, 11 Apr 2007 11:52:42 +0000
parents b74794d7f11a
children 3230f896c629
files src/character.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/character.h	Wed Apr 11 11:52:06 2007 +0000
+++ b/src/character.h	Wed Apr 11 11:52:42 2007 +0000
@@ -182,7 +182,7 @@
       (p)[1] = (0x80 | (((c) >> 6) & 0x3F)),	\
       (p)[2] = (0x80 | ((c) & 0x3F)),		\
       3)					\
-   : char_string (c, p))
+   : char_string ((unsigned) c, p))
 
 /* Store multibyte form of byte B in P.  The caller should allocate at
    least MAX_MULTIBYTE_LENGTH bytes area at P in advance.  Returns the
@@ -610,7 +610,7 @@
    : XINT (CHAR_TABLE_REF (Vchar_width_table, c)))
 
 extern int char_resolve_modifier_mask P_ ((int));
-extern int char_string P_ ((int, unsigned char *));
+extern int char_string P_ ((unsigned, unsigned char *));
 extern int string_char P_ ((const unsigned char *,
 			    const unsigned char **, int *));