summaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-09-13 00:49:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-09-13 00:49:16 +0000
commit691b21ecaa7c251d9682f42ea06d859d75328214 (patch)
tree08161e5dd6f5873bc7f99edcce7630a4541dfec9 /gas/messages.c
parentbd590657feba35e115c17e798597d5c3f333eb65 (diff)
downloadbinutils-redhat-691b21ecaa7c251d9682f42ea06d859d75328214.tar.gz
* 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/messages.c')
-rw-r--r--gas/messages.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/messages.c b/gas/messages.c
index 99e20a1a81..866565dee2 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