diff options
author | Alan Modra <amodra@gmail.com> | 2004-09-13 00:49:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-09-13 00:49:16 +0000 |
commit | 2159ac21e244ff361e244b0fa03219b96dbc4673 (patch) | |
tree | 84f683b86439a1a406e899b482468287c8edca2c /gas | |
parent | c0604db47dead8f87146741e50692bd9f948f04f (diff) | |
download | gdb-2159ac21e244ff361e244b0fa03219b96dbc4673.zip gdb-2159ac21e244ff361e244b0fa03219b96dbc4673.tar.gz gdb-2159ac21e244ff361e244b0fa03219b96dbc4673.tar.bz2 |
* messages.c (as_internal_value_out_of_range): Cast values passed
to as_bad_where or as_warn_where to proper type.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/messages.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index beb3083..22efeee 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-09-13 Alan Modra <amodra@bigpond.net.au> + + * messages.c (as_internal_value_out_of_range): Cast values passed + to as_bad_where or as_warn_where to proper type. + 2004-09-11 Theodore A. Roth <troth@openavr.org> * config/tc-avr.c: Add support for diff --git a/gas/messages.c b/gas/messages.c index 99e20a1..866565d 100644 --- a/gas/messages.c +++ b/gas/messages.c @@ -1,5 +1,6 @@ /* messages.c - error reporter - - Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, 2003 + Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, + 2003, 2004 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -534,9 +535,11 @@ as_internal_value_out_of_range (char * prefix, err = _("%s out of range (%d is not between %d and %d)"); if (bad) - as_bad_where (file, line, err, prefix, val, min, max); + as_bad_where (file, line, err, + prefix, (int) val, (int) min, (int) max); else - as_warn_where (file, line, err, prefix, val, min, max); + as_warn_where (file, line, err, + prefix, (int) val, (int) min, (int) max); } #ifdef BFD_ASSEMBLER else |