aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-04-14 05:49:59 +0000
committerAlan Modra <amodra@gmail.com>2004-04-14 05:49:59 +0000
commite9f877805adc36671416ec0338fdb5a8af628464 (patch)
tree9f09d6556846af52899124136ac399d6c5817bd6 /binutils
parent53239e41047d1316540c37f49a16a37686249bd5 (diff)
downloadgdb-e9f877805adc36671416ec0338fdb5a8af628464.zip
gdb-e9f877805adc36671416ec0338fdb5a8af628464.tar.gz
gdb-e9f877805adc36671416ec0338fdb5a8af628464.tar.bz2
* strings.c (print_strings): Cast file_off to unsigned long in
printf arg list.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/strings.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0fbcb5f..bb90e5b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-14 Alan Modra <amodra@bigpond.net.au>
+
+ * strings.c (print_strings): Cast file_off to unsigned long in
+ printf arg list.
+
2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
PR 86
diff --git a/binutils/strings.c b/binutils/strings.c
index 68c244c..0715be0 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