* messages.c (as_internal_value_out_of_range): Cast values passed
authorAlan Modra <amodra@gmail.com>
Mon, 13 Sep 2004 00:49:16 +0000 (00:49 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 13 Sep 2004 00:49:16 +0000 (00:49 +0000)
to as_bad_where or as_warn_where to proper type.

gas/ChangeLog
gas/messages.c

index beb30837eab6b1a9a8e76553351d22cf338d2f1b..22efeee8fc68e5bbfeff1f31d521823fa9f97f57 100644 (file)
@@ -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
index 99e20a1a8140281790a2f270d49c3babd3948f12..866565dee2a7a8ff888aeddea55e1bcb126476ee 100644 (file)
@@ -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
This page took 0.0414 seconds and 4 git commands to generate.