OSDN Git Service

* class.c (dump_class_hierarchy): Make format agree with argument;
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Jan 2000 08:12:26 +0000 (08:12 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Jan 2000 08:12:26 +0000 (08:12 +0000)
cast pointer to unsigned long and print with %lx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31535 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c

index 10efd25..91dafe2 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
+
+       * class.c (dump_class_hierarchy): Make format agree with argument;
+       cast pointer to unsigned long and print with %lx.
+       
 2000-01-19  Gabriel Dos Reis  <gdr@codesourcery>
 
        * decl2.c (lang_decode_option): Set default line-wrap length to 72.
index 91d41ae..3be8b1b 100644 (file)
@@ -6297,8 +6297,8 @@ dump_class_hierarchy (binfo, indent)
 {
   int i;
 
-  fprintf (stderr, "%*s0x%x (%s) %d %s\n", indent, "",
-          (unsigned int) binfo,
+  fprintf (stderr, "%*s0x%lx (%s) %d %s\n", indent, "",
+          (unsigned long) binfo,
           type_as_string (binfo, TS_PLAIN),
           TREE_INT_CST_LOW (BINFO_OFFSET (binfo)),
           BINFO_PRIMARY_MARKED_P (binfo) ? "primary" : "");