* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 4 Feb 2003 14:31:04 +0000 (14:31 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 4 Feb 2003 14:31:04 +0000 (14:31 +0000)
long and use %ld in printf format.

binutils/ChangeLog
binutils/rddbg.c

index eebf029fe3e4ee0f91bf1128f5069a72d0db30ff..d822fc921187a9595ae937f3299388adc3f044cb 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-04  Andreas Schwab  <schwab@suse.de>
+
+       * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
+       long and use %ld in printf format.
+
 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
 
        * readelf.c (dump_relocations): Reorder the r_info field for
index 2e0fd67ecc79f4b8bb157f2afcc3201dbe4f5741..2f6ec6e3ea1b924aca63da7012cb8cb390767829 100644 (file)
@@ -193,9 +193,9 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound)
 
                  if (stroff + strx > strsize)
                    {
-                     fprintf (stderr, "%s: %s: stab entry %d is corrupt, strx = 0x%x, type = %d\n",
+                     fprintf (stderr, "%s: %s: stab entry %ld is corrupt, strx = 0x%x, type = %d\n",
                               bfd_get_filename (abfd), names[i].secname,
-                              (stab - stabs) / 12, strx, type);
+                              (long) (stab - stabs) / 12, strx, type);
                      continue;
                    }
 
This page took 0.027054 seconds and 4 git commands to generate.