aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/error.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3ea81f7..8d600ac 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * error.c (dump_expr): Fix format specifier warning.
+
2002-12-04 Geoffrey Keating <geoffk@apple.com>
* class.c (finish_struct_1): Correct comment.
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 37f24ec..da880f5 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1479,7 +1479,8 @@ dump_expr (t, flags)
if (host_integerp (t, TREE_UNSIGNED (type)))
dump_char (tree_low_cst (t, TREE_UNSIGNED (type)));
else
- output_printf (scratch_buffer, "\\x%x", TREE_INT_CST_LOW (t));
+ output_printf (scratch_buffer, "\\x%x",
+ (unsigned int) TREE_INT_CST_LOW (t));
output_add_character (scratch_buffer, '\'');
}
else