This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
minor strings.c fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Wed, 14 Apr 2004 15:18:23 +0930
- Subject: minor strings.c fix
Found when looking at PR 75.
* strings.c (print_strings): Cast file_off to unsigned long in
printf arg list.
Index: binutils/strings.c
===================================================================
RCS file: /cvs/src/src/binutils/strings.c,v
retrieving revision 1.21
diff -u -p -r1.21 strings.c
--- binutils/strings.c 7 Nov 2003 12:19:34 -0000 1.21
+++ binutils/strings.c 14 Apr 2004 05:38:24 -0000
@@ -557,7 +557,8 @@ print_strings (const char *filename, FIL
#else
# if !BFD_HOST_64BIT_LONG
if (start != (unsigned long) start)
- printf ("%lx%8.8lx ", start >> 32, start & 0xffffffff);
+ printf ("%lx%8.8lx ", (unsigned long) (start >> 32),
+ (unsigned long) (start & 0xffffffff));
else
# endif
#endif
--
Alan Modra
IBM OzLabs - Linux Technology Centre