]> gcc.gnu.org Git - gcc.git/commitdiff
cppexp.c (cpp_classify_number): Cast precission to int for correct printf format.
authorAndreas Jaeger <aj@suse.de>
Sat, 1 Jun 2002 14:11:45 +0000 (16:11 +0200)
committerAndreas Jaeger <aj@gcc.gnu.org>
Sat, 1 Jun 2002 14:11:45 +0000 (16:11 +0200)
* cppexp.c (cpp_classify_number): Cast precission to int for
correct printf format.

From-SVN: r54147

gcc/ChangeLog
gcc/cppexp.c

index 2cdf39b91c9ab52258e6eee0510dda4c0916af8e..753ea40e102f952cfbd56b9fb7ca95b97b143556 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-01  Andreas Jaeger  <aj@suse.de>
+
+       * cppexp.c (cpp_classify_number): Cast precission to int for
+       correct printf format.
+
 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
 
        * 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  <rakdver@atrey.karlin.mff.cuni.cz>
        infrastructure.
 
 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
-       
+
        * except.c (nothrow_function_p): Walk epilogue delay list
        checking the insn, not the chain for potential throws.
-       
+
 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
 
        * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
@@ -186,7 +191,7 @@ Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
        (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
 
 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
-       
+
        * varasm.c (mark_constant_pool): Walk epilogue delay list
        checking the insn, not the chain for potential constants.
 
index 73a892ff79bf6627f9ebd419d38c1314ae31cdc4..1153768dedd7e21f39e7197cfc60616d00169f86 100644 (file)
@@ -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)
This page took 0.075352 seconds and 5 git commands to generate.