Fix compiler warning nit in readelf.
authorRoland McGrath <roland@redhat.com>
Mon, 15 Feb 2010 23:16:15 +0000 (15:16 -0800)
committerRoland McGrath <roland@redhat.com>
Mon, 15 Feb 2010 23:16:15 +0000 (15:16 -0800)
src/ChangeLog
src/readelf.c

index 5624331..f9f98ac 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-15  Roland McGrath  <roland@redhat.com>
+
+       * readelf.c (print_debug_frame_section): Add a cast to avoid sign
+       mismatch in comparison.
+
 2010-02-02  Roland McGrath  <roland@redhat.com>
 
        * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero).
index 7b687d7..7b3c4f8 100644 (file)
@@ -4918,7 +4918,7 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
              unsigned int augmentationlen;
              get_uleb128 (augmentationlen, readp);
 
-             if (augmentationlen > dataend - readp)
+             if (augmentationlen > (size_t) (dataend - readp))
                error (1, 0, gettext ("invalid augmentation length"));
 
              const char *hdr = "Augmentation data:";