From: Kaveh R. Ghazi Date: Thu, 5 Dec 2002 22:20:51 +0000 (+0000) Subject: * error.c (dump_expr): Fix format specifier warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42b99e0340fe3816266a5501deb8471d4df18661;p=gcc.git * error.c (dump_expr): Fix format specifier warning. From-SVN: r59867 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3ea81f71794..8d600ac74d0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2002-12-05 Kaveh R. Ghazi + + * error.c (dump_expr): Fix format specifier warning. + 2002-12-04 Geoffrey Keating * class.c (finish_struct_1): Correct comment. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 37f24ecc0b5..da880f5fad4 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