From 57494d81b631343380888b8a6ca55bf8a6110436 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 13 Nov 2014 12:56:18 -0800 Subject: [PATCH] Add cast to unsigned int * coffcode.h (coff_slurp_line_table): Add cast to unsigned int. --- bfd/ChangeLog | 4 ++++ bfd/coffcode.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2