]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add cast to unsigned int
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 13 Nov 2014 20:56:18 +0000 (12:56 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 13 Nov 2014 20:56:18 +0000 (12:56 -0800)
* coffcode.h (coff_slurp_line_table): Add cast to unsigned int.

bfd/ChangeLog
bfd/coffcode.h

index f1f00775b8f88b815fa957991962eb0316e14ecc..e29390cd634653b729a57186ac11e09e13585d2a 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 69992db655b3aede1fed811569f621c95ef78c14..9990b169ecc2329ff18f71d99992660dfb12fd34 100644 (file)
@@ -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);