diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-07-30 04:34:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-07-30 04:34:58 +0000 |
commit | 2992fc038ac25897a1324145ed146d18e83d92be (patch) | |
tree | a401676b306b6dc9984d82ea9219b4d822e4cf59 /opcodes/cris-dis.c | |
parent | 1af22fcd336623a00a96c8e47db78ca5192af449 (diff) | |
download | binutils-redhat-2992fc038ac25897a1324145ed146d18e83d92be.tar.gz |
Silence gcc printf warnings
Diffstat (limited to 'opcodes/cris-dis.c')
-rw-r--r-- | opcodes/cris-dis.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/opcodes/cris-dis.c b/opcodes/cris-dis.c index 64e55e239a..01e69cab06 100644 --- a/opcodes/cris-dis.c +++ b/opcodes/cris-dis.c @@ -1,5 +1,5 @@ /* Disassembler code for CRIS. - Copyright 2000, 2001, 2002, 2004, 2005, 2006, 2007 + Copyright 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Axis Communications AB, Lund, Sweden. Written by Hans-Peter Nilsson. @@ -581,7 +581,10 @@ static char * format_dec (long number, char *outbuffer, int signedp) { last_immediate = number; - sprintf (outbuffer, signedp ? "%ld" : "%lu", number); + if (signedp) + sprintf (outbuffer, "%ld", number); + else + sprintf (outbuffer, "%lu", (unsigned long) number); return outbuffer + strlen (outbuffer); } |