summaryrefslogtreecommitdiff
path: root/lib/MC/MCInstPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCInstPrinter.cpp')
-rw-r--r--lib/MC/MCInstPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCInstPrinter.cpp b/lib/MC/MCInstPrinter.cpp
index 7efb3f0ef3..73f30ffb52 100644
--- a/lib/MC/MCInstPrinter.cpp
+++ b/lib/MC/MCInstPrinter.cpp
@@ -55,7 +55,7 @@ StringRef MCInstPrinter::markup(StringRef a, StringRef b) const {
/// Utility function to print immediates in decimal or hex.
format_object1<int64_t> MCInstPrinter::formatImm(const int64_t Value) const {
if (getPrintImmHex())
- return format("0x%llx", Value);
+ return format("0x%" PRIx64, Value);
else
- return format("%lld", Value);
+ return format("%" PRId64, Value);
}