diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-11-13 12:56:18 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-11-13 12:56:18 -0800 |
commit | 57494d81b631343380888b8a6ca55bf8a6110436 (patch) | |
tree | 2f9d61c8f60ad40c4dc235d4eaaa7baa6ca45617 | |
parent | f8521a03584f2451e52cbc90bff5c1050a588c0f (diff) | |
download | gdb-57494d81b631343380888b8a6ca55bf8a6110436.zip gdb-57494d81b631343380888b8a6ca55bf8a6110436.tar.gz gdb-57494d81b631343380888b8a6ca55bf8a6110436.tar.bz2 |
Add cast to unsigned int
* coffcode.h (coff_slurp_line_table): Add cast to unsigned int.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/coffcode.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1f0077..e29390c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 2014-11-13 H.J. Lu <hongjiu.lu@intel.com> + * coffcode.h (coff_slurp_line_table): Add cast to unsigned int. + +2014-11-13 H.J. Lu <hongjiu.lu@intel.com> + * coffcode.h (coff_pointerize_aux_hook): Fix a typo. 2014-11-13 H.J. Lu <hongjiu.lu@intel.com> diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 69992db..9990b16 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); |