aboutsummaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-07-30 04:34:58 +0000
committerAlan Modra <amodra@gmail.com>2008-07-30 04:34:58 +0000
commit0af1713e7cd57b52f6c81f73aa58934132198880 (patch)
treeaf4b52a6c5f3c8cd570e4f266f019cf552d6f442 /gas/messages.c
parent22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff)
downloadgdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip
gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz
gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2
Silence gcc printf warnings
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/messages.c b/gas/messages.c
index bbe181b..69fcf78 100644
--- a/gas/messages.c
+++ b/gas/messages.c
@@ -1,6 +1,6 @@
/* messages.c - error reporter -
Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001,
- 2003, 2004, 2005, 2006, 2007
+ 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -500,9 +500,9 @@ as_internal_value_out_of_range (char * prefix,
if (sizeof (val) > sizeof (bfd_vma))
abort ();
- sprintf_vma (val_buf, val);
- sprintf_vma (min_buf, min);
- sprintf_vma (max_buf, max);
+ sprintf_vma (val_buf, (bfd_vma) val);
+ sprintf_vma (min_buf, (bfd_vma) min);
+ sprintf_vma (max_buf, (bfd_vma) max);
/* xgettext:c-format. */
err = _("%s out of range (0x%s is not between 0x%s and 0x%s)");