summaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
commit2992fc038ac25897a1324145ed146d18e83d92be (patch)
treea401676b306b6dc9984d82ea9219b4d822e4cf59 /gas/symbols.c
parent1af22fcd336623a00a96c8e47db78ca5192af449 (diff)
downloadbinutils-redhat-2992fc038ac25897a1324145ed146d18e83d92be.tar.gz
Silence gcc printf warnings
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 252cfcef4e..c7262b8445 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1,6 +1,6 @@
/* symbols.c -symbol table-
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -2791,7 +2791,7 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
if (s != undefined_section
&& s != expr_section)
- fprintf (file, " %lx", (long) S_GET_VALUE (sym));
+ fprintf (file, " %lx", (unsigned long) S_GET_VALUE (sym));
}
else if (indent_level < max_indent_level
&& S_GET_SEGMENT (sym) != undefined_section)
@@ -2800,7 +2800,7 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
fprintf (file, "\n%*s<", indent_level * 4, "");
if (LOCAL_SYMBOL_CHECK (sym))
fprintf (file, "constant %lx",
- (long) ((struct local_symbol *) sym)->lsy_value);
+ (unsigned long) ((struct local_symbol *) sym)->lsy_value);
else
print_expr_1 (file, &sym->sy_value);
fprintf (file, ">");
@@ -2844,7 +2844,7 @@ print_expr_1 (FILE *file, expressionS *exp)
fprintf (file, "absent");
break;
case O_constant:
- fprintf (file, "constant %lx", (long) exp->X_add_number);
+ fprintf (file, "constant %lx", (unsigned long) exp->X_add_number);
break;
case O_symbol:
indent_level++;
@@ -2854,7 +2854,7 @@ print_expr_1 (FILE *file, expressionS *exp)
maybe_print_addnum:
if (exp->X_add_number)
fprintf (file, "\n%*s%lx", indent_level * 4, "",
- (long) exp->X_add_number);
+ (unsigned long) exp->X_add_number);
indent_level--;
break;
case O_register: