summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj/MachODumper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-readobj/MachODumper.cpp')
-rw-r--r--tools/llvm-readobj/MachODumper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-readobj/MachODumper.cpp b/tools/llvm-readobj/MachODumper.cpp
index 25dbd3e15b9..0d6bba64215 100644
--- a/tools/llvm-readobj/MachODumper.cpp
+++ b/tools/llvm-readobj/MachODumper.cpp
@@ -397,7 +397,7 @@ void MachODumper::printSymbol(symbol_iterator SymI) {
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);