diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-04-14 05:49:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2004-04-14 05:49:59 +0000 |
commit | 078bbef995f23936f7cead491f6acea6106f59da (patch) | |
tree | c798c4bf8921d74f86b8b6950146bf13374205f2 /binutils/strings.c | |
parent | b9e4d30ddb5a876d465b4a1f66d7c43055597aec (diff) | |
download | binutils-redhat-078bbef995f23936f7cead491f6acea6106f59da.tar.gz |
* strings.c (print_strings): Cast file_off to unsigned long in
printf arg list.
Diffstat (limited to 'binutils/strings.c')
-rw-r--r-- | binutils/strings.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/strings.c b/binutils/strings.c index 68c244cafb..0715be0e07 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -1,6 +1,6 @@ /* strings -- print the strings of printable characters in files Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003 Free Software Foundation, Inc. + 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -512,7 +512,7 @@ print_strings (const char *filename, FILE *stream, file_off address, } /* We found a run of `string_min' graphic characters. Print up - to the next non-graphic character. */ + to the next non-graphic character. */ if (print_filenames) printf ("%s: ", filename); @@ -557,7 +557,8 @@ print_strings (const char *filename, FILE *stream, file_off address, #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 |