]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 562433149d9223d8d024f90addd34a0aeeed6d52..f9f98ac1af59e212cb3d9b2b77419f8c1ff397c8 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 7b687d75b381a1a01cb08a308e1eaf31447de6da..7b3c4f8b3b6f59540306477499f2b0daee70dab8 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:";