aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorSteve Ellcey <Steve.Ellcey@imgtec.com>2014-12-05 11:06:53 -0800
committerSteve Ellcey <Steve.Ellcey@imgtec.com>2014-12-05 11:06:53 -0800
commit238309aab1e49760b335262db8dbfb26ac88e69a (patch)
treee07498ace3591eefa8a2c90d9c9f65fb4d099fd0 /bfd/ecoff.c
parent6c1c7be347154e17a8cf723395bb616d4f3258ed (diff)
downloadgdb-238309aab1e49760b335262db8dbfb26ac88e69a.zip
gdb-238309aab1e49760b335262db8dbfb26ac88e69a.tar.gz
gdb-238309aab1e49760b335262db8dbfb26ac88e69a.tar.bz2
2014-12-05 Steve Ellcey <sellcey@mips.com>
* ecoff.c (_bfd_ecoff_slurp_symbol_table): Add cast.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 70783b1..e72e254 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)