From 91b1247259cffcd3eb65721d21349b1a9eccafe3 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 1 Jun 2002 16:11:45 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 11 ++++++++--- gcc/cppexp.c | 8 ++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2cdf39b91c9..753ea40e102 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-01 Andreas Jaeger + + * cppexp.c (cpp_classify_number): Cast precission to int for + correct printf format. + 2002-06-01 Marek Michalkiewicz * config/avr/avr.c (avr_mcu_types): Remove devices that were once @@ -54,10 +59,10 @@ Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak infrastructure. 2002-06-01 Alan Lehotsky - + * except.c (nothrow_function_p): Walk epilogue delay list checking the insn, not the chain for potential throws. - + 2002-05-31 Zack Weinberg * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove. @@ -186,7 +191,7 @@ Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define. 2002-05-31 Alan Lehotsky - + * varasm.c (mark_constant_pool): Walk epilogue delay list checking the insn, not the chain for potential constants. diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 73a892ff79b..1153768dedd 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) -- 2.30.2