[llvm] r201032 - tools: explicitly cast to avoid a warning
Saleem Abdulrasool
compnerd at compnerd.org
Sat Feb 8 17:12:21 PST 2014
Author: compnerd
Date: Sat Feb 8 19:12:21 2014
New Revision: 201032
URL: http://llvm.org/viewvc/llvm-project?rev=201032&view=rev
Log:
tools: explicitly cast to avoid a warning
Modified:
llvm/trunk/tools/llvm-readobj/ARMEHABIPrinter.h
Modified: llvm/trunk/tools/llvm-readobj/ARMEHABIPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ARMEHABIPrinter.h?rev=201032&r1=201031&r2=201032&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ARMEHABIPrinter.h (original)
+++ llvm/trunk/tools/llvm-readobj/ARMEHABIPrinter.h Sat Feb 8 19:12:21 2014
@@ -376,7 +376,7 @@ PrinterContext<ET>::FindExceptionTable(u
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;
More information about the llvm-commits
mailing list