diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-05 22:20:51 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-05 22:20:51 +0000 |
| commit | e6a2cc075f5d9f0537dbce3fc4a6339221e1d2ca (patch) | |
| tree | de35911419a3eef784a670f713339d5ddec5f73d | |
| parent | b74a4cc18d7cc8f7361f56ede795a3bf4886e313 (diff) | |
| download | ppe42-gcc-e6a2cc075f5d9f0537dbce3fc4a6339221e1d2ca.tar.gz ppe42-gcc-e6a2cc075f5d9f0537dbce3fc4a6339221e1d2ca.zip | |
* error.c (dump_expr): Fix format specifier warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59867 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/error.c | 3 |
2 files changed, 6 insertions, 1 deletions
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 <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 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 |

