diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1f00775b8..e29390cd63 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-11-13 H.J. Lu + + * coffcode.h (coff_slurp_line_table): Add cast to unsigned int. + 2014-11-13 H.J. Lu * coffcode.h (coff_pointerize_aux_hook): Fix a typo. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 69992db655..9990b169ec 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -4647,7 +4647,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect) if (lineno_cache[i].line_number == 0) *p++ = &lineno_cache[i]; - BFD_ASSERT ((p - func_table) == nbr_func); + BFD_ASSERT ((unsigned int) (p - func_table) == nbr_func); /* Sort by functions. */ qsort (func_table, nbr_func, sizeof (alent *), coff_sort_func_alent);