From: H.J. Lu Date: Thu, 13 Nov 2014 20:56:18 +0000 (-0800) Subject: Add cast to unsigned int X-Git-Tag: gdb-7.9-branchpoint~555 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57494d81b631343380888b8a6ca55bf8a6110436;p=thirdparty%2Fbinutils-gdb.git Add cast to unsigned int * coffcode.h (coff_slurp_line_table): Add cast to unsigned int. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1f00775b8f..e29390cd634 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 69992db655b..9990b169ecc 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);