aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-06-01 16:11:45 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2002-06-01 16:11:45 +0200
commit91b1247259cffcd3eb65721d21349b1a9eccafe3 (patch)
tree7b2a5756cab68093b4f735bc55819005c0fe4479 /gcc/cppexp.c
parent01e9ae86327636d3a3309b19b88b261d8eabe6af (diff)
downloadgcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.zip
gcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.tar.gz
gcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.tar.bz2
cppexp.c (cpp_classify_number): Cast precission to int for correct printf format.
* cppexp.c (cpp_classify_number): Cast precission to int for correct printf format. From-SVN: r54147
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 73a892f..1153768 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -244,7 +244,7 @@ cpp_classify_number (pfile, token)
{
cpp_error (pfile, DL_ERROR,
"invalid suffix \"%.*s\" on floating constant",
- limit - str, str);
+ (int) (limit - str), str);
return CPP_N_INVALID;
}
@@ -254,7 +254,7 @@ cpp_classify_number (pfile, token)
&& ! cpp_sys_macro_p (pfile))
cpp_error (pfile, DL_WARNING,
"traditional C rejects the \"%.*s\" suffix",
- limit - str, str);
+ (int) (limit - str), str);
result |= CPP_N_FLOATING;
}
@@ -265,7 +265,7 @@ cpp_classify_number (pfile, token)
{
cpp_error (pfile, DL_ERROR,
"invalid suffix \"%.*s\" on integer constant",
- limit - str, str);
+ (int) (limit - str), str);
return CPP_N_INVALID;
}
@@ -275,7 +275,7 @@ cpp_classify_number (pfile, token)
&& ! cpp_sys_macro_p (pfile))
cpp_error (pfile, DL_WARNING,
"traditional C rejects the \"%.*s\" suffix",
- limit - str, str);
+ (int) (limit - str), str);
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
&& ! CPP_OPTION (pfile, c99)