tools: explicitly cast to avoid a warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 9 Feb 2014 01:12:21 +0000 (01:12 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 9 Feb 2014 01:12:21 +0000 (01:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201032 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-readobj/ARMEHABIPrinter.h

index 6f0797b076344e706415027a5ef88470cadf5a8d..35c58ef3e4629b25f747fa455af7bce753b40235 100644 (file)
@@ -376,7 +376,7 @@ PrinterContext<ET>::FindExceptionTable(unsigned IndexSectionIndex,
     if (SI->sh_type == ELF::SHT_REL && SI->sh_info == IndexSectionIndex) {
       for (Elf_Rel_iterator RI = ELF->begin_rel(&*SI), RE = ELF->end_rel(&*SI);
            RI != RE; ++RI) {
-        if (RI->r_offset == IndexTableOffset) {
+        if (static_cast<unsigned>(RI->r_offset) == IndexTableOffset) {
           typename object::ELFFile<ET>::Elf_Rela RelA;
           RelA.r_offset = RI->r_offset;
           RelA.r_info = RI->r_info;