[llvm] r203155 - Fix warning about mismatched signs in comparison.
Rafael Espindola
rafael.espindola at gmail.com
Thu Mar 6 12:16:24 PST 2014
Author: rafael
Date: Thu Mar 6 14:16:24 2014
New Revision: 203155
URL: http://llvm.org/viewvc/llvm-project?rev=203155&view=rev
Log:
Fix warning about mismatched signs in comparison.
Modified:
llvm/trunk/tools/llvm-readobj/MachODumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/MachODumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/MachODumper.cpp?rev=203155&r1=203154&r2=203155&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/MachODumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/MachODumper.cpp Thu Mar 6 14:16:24 2014
@@ -397,7 +397,7 @@ void MachODumper::printSymbol(symbol_ite
W.startLine() << "PrivateExtern\n";
if (Symbol.Type & MachO::N_EXT)
W.startLine() << "Extern\n";
- W.printEnum("Type", Symbol.Type & MachO::N_TYPE,
+ W.printEnum("Type", uint8_t(Symbol.Type & MachO::N_TYPE),
makeArrayRef(MachOSymbolTypes));
}
W.printHex ("Section", SectionName, Symbol.SectionIndex);
More information about the llvm-commits
mailing list