]> gcc.gnu.org Git - gcc.git/commitdiff
error.c (dump_expr): Add 0x to printed hex numbers to make output match source code...
authorMike Stump <mrs@apple.com>
Fri, 28 Mar 2003 23:48:17 +0000 (23:48 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 28 Mar 2003 23:48:17 +0000 (23:48 +0000)
        * error.c (dump_expr): Add 0x to printed hex numbers to make
        output match source code better.

From-SVN: r64997

gcc/cp/ChangeLog
gcc/cp/error.c

index efced90578c5888759683a313e88a58cfbda15f0..2dc2bb7a2a9e0405466642349732fcd3a5ff728d 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-28  Mike Stump  <mrs@apple.com>
+
+       * error.c (dump_expr): Add 0x to printed hex numbers to make
+       output match source code better.
+
 2003-03-28  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/10218
index a19374a177cb0c8e76e18f0328183819e6d6f439..f836ecc59ec1d6c4c8443365adedc39e77d25f0a 100644 (file)
@@ -1474,9 +1474,9 @@ dump_expr (tree t, int flags)
                /* Would "%x%0*x" or "%x%*0x" get zero-padding on all
                   systems?  */
                {
-                 static char format[10]; /* "%x%09999x\0" */
+                 static char format[12]; /* "0x%x%09999x\0" */
                  if (!format[0])
-                   sprintf (format, "%%x%%0%dx", HOST_BITS_PER_INT / 4);
+                   sprintf (format, "0x%%x%%0%dx", HOST_BITS_PER_INT / 4);
                  sprintf (digit_buffer, format, TREE_INT_CST_HIGH (val),
                           TREE_INT_CST_LOW (val));
                  output_add_string (scratch_buffer, digit_buffer);
This page took 0.183021 seconds and 5 git commands to generate.