diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-21 12:06:12 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-21 12:06:12 +0000 |
commit | 7d3b0527d96032442f0443473b4c34479ce4cd2c (patch) | |
tree | 821db03b9b39d7877956df361a93a324f08c5be3 /gcc/cppcharset.c | |
parent | 457a1f67fd5ae7678842251e630c858af7d646ff (diff) | |
download | ppe42-gcc-7d3b0527d96032442f0443473b4c34479ce4cd2c.tar.gz ppe42-gcc-7d3b0527d96032442f0443473b4c34479ce4cd2c.zip |
* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppcharset.c')
-rw-r--r-- | gcc/cppcharset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppcharset.c b/gcc/cppcharset.c index 900e4516fbc..23a44760701 100644 --- a/gcc/cppcharset.c +++ b/gcc/cppcharset.c @@ -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) |