aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Lucier <lucier@math.purdue.edu>2000-01-20 08:12:26 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-01-20 08:12:26 +0000
commit2984dacf540586cb17c644f4fa3564b48cdf3f61 (patch)
treedac6e9f4b7761a702eac3d67a27cf7a7dbfebf50
parent65f6fa241ef5f929b29192751f6db5f17f32d8ae (diff)
downloadgcc-2984dacf540586cb17c644f4fa3564b48cdf3f61.zip
gcc-2984dacf540586cb17c644f4fa3564b48cdf3f61.tar.gz
gcc-2984dacf540586cb17c644f4fa3564b48cdf3f61.tar.bz2
class.c (dump_class_hierarchy): Make format agree with argument; cast pointer to unsigned long and print with %lx.
* class.c (dump_class_hierarchy): Make format agree with argument; cast pointer to unsigned long and print with %lx. From-SVN: r31535
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 10efd25..91dafe2 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 91d41ae..3be8b1b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -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" : "");