From: Andreas Schwab Date: Tue, 4 Feb 2003 14:31:04 +0000 (+0000) Subject: * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22d822350adbb893b9ee44223a1468bf861d3b38;p=binutils-gdb.git * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to long and use %ld in printf format. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index eebf029fe3e..d822fc92118 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2003-02-04 Andreas Schwab + + * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to + long and use %ld in printf format. + 2003-01-28 Richard Sandiford * readelf.c (dump_relocations): Reorder the r_info field for diff --git a/binutils/rddbg.c b/binutils/rddbg.c index 2e0fd67ecc7..2f6ec6e3ea1 100644 --- a/binutils/rddbg.c +++ b/binutils/rddbg.c @@ -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; }