From 238309aab1e49760b335262db8dbfb26ac88e69a Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Fri, 5 Dec 2014 11:06:53 -0800 Subject: [PATCH] 2014-12-05 Steve Ellcey * ecoff.c (_bfd_ecoff_slurp_symbol_table): Add cast. --- bfd/ChangeLog | 4 ++++ bfd/ecoff.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d3e211d61e5..d1c86da91d5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-12-05 Steve Ellcey + + * ecoff.c (_bfd_ecoff_slurp_symbol_table): Add cast. + 2014-12-05 H.J. Lu * elf64-x86-64.c (bfd_elf32_get_synthetic_symtab): New. diff --git a/bfd/ecoff.c b/bfd/ecoff.c index 70783b1079f..e72e2549131 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -952,7 +952,7 @@ _bfd_ecoff_slurp_symbol_table (bfd *abfd) and ecoff_data (abfd)->debug_info.symbolic_header.ifdMax can mean that we have fewer symbols than we were expecting. Allow for this by updating the symbol count and warning the user. */ - if (internal_ptr - internal < bfd_get_symcount (abfd)) + if (internal_ptr - internal < (ptrdiff_t) bfd_get_symcount (abfd)) { bfd_get_symcount (abfd) = internal_ptr - internal; (*_bfd_error_handler) -- 2.30.2