diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index 86bed6251905..3df443149a6a 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -458,9 +458,12 @@ static void printRuntimeFunction(const COFFObjectFile *Obj, if (!RF.StartAddress) return; outs() << "Function Table:\n" - << format(" Start Address: 0x%04x\n", RF.StartAddress) - << format(" End Address: 0x%04x\n", RF.EndAddress) - << format(" Unwind Info Address: 0x%04x\n", RF.UnwindInfoOffset); + << format(" Start Address: 0x%04x\n", + static_cast(RF.StartAddress)) + << format(" End Address: 0x%04x\n", + static_cast(RF.EndAddress)) + << format(" Unwind Info Address: 0x%04x\n", + static_cast(RF.UnwindInfoOffset)); uintptr_t addr; if (Obj->getRvaPtr(RF.UnwindInfoOffset, addr)) return;