+2003-04-21 Andreas Jaeger <aj@suse.de>
+
+ * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
+
2003-04-20 Chris Lattner <sabre@nondot.org>
Zack Weinberg <zack@codesourcery.com>
if (length)
/* We'll error when we try it out as the start of an identifier. */
cpp_error (pfile, DL_ERROR, "incomplete universal character name %.*s",
- str - base, base);
+ (int) (str - base), base);
/* The standard permits $, @ and ` to be specified as UCNs. We use
hex escapes so that this also works with EBCDIC hosts. */
else if ((result < 0xa0
|| (result >= 0xD800 && result <= 0xDFFF))
{
cpp_error (pfile, DL_ERROR, "%.*s is not a valid universal character",
- str - base, base);
+ (int) (str - base), base);
}
else if (identifier_pos)
{
if (validity == 0)
cpp_error (pfile, DL_ERROR,
"universal character %.*s is not valid in an identifier",
- str - base, base);
+ (int) (str - base), base);
else if (validity == 2 && identifier_pos == 1)
cpp_error (pfile, DL_ERROR,
"universal character %.*s is not valid at the start of an identifier",
- str - base, base);
+ (int) (str - base), base);
}
if (result == 0)