]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* strings.c (print_strings): Cast file_off to unsigned long in
authorAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2004 05:49:59 +0000 (05:49 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2004 05:49:59 +0000 (05:49 +0000)
printf arg list.

binutils/ChangeLog
binutils/strings.c

index 0fbcb5f0605d04ee9eea46cb2887f1f916a48900..bb90e5ba2d18be9af4ba79296d3e5ff36296b8e9 100644 (file)
@@ -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
index 68c244cafbd816b578bd008108e5fe811342559a..0715be0e072d662daac4844fce2c9653fdab0960 100644 (file)
@@ -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