* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
authorAndreas Jaeger <aj@suse.de>
Mon, 21 Apr 2003 12:06:12 +0000 (14:06 +0200)
committerAndreas Jaeger <aj@gcc.gnu.org>
Mon, 21 Apr 2003 12:06:12 +0000 (14:06 +0200)
From-SVN: r65883

gcc/ChangeLog
gcc/cppcharset.c

index 228f1b0c8f63539cdf95b1ff2c81a8ea65b9cf6f..ef0ad87aa5003a97f113d2692a9e1b2fe04284e3 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
index 900e4516fbcf885668777b4044fe502bf7d6a96e..23a44760701cb1a7f406421b745bcf8690eb2012 100644 (file)
@@ -92,7 +92,7 @@ _cpp_valid_ucn (pfile, pstr, identifier_pos)
   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
@@ -101,7 +101,7 @@ _cpp_valid_ucn (pfile, pstr, identifier_pos)
           || (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)
     {
@@ -110,11 +110,11 @@ _cpp_valid_ucn (pfile, pstr, 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)