summaryrefslogtreecommitdiff
path: root/arch/powerpc/arch_ppc.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-09-13 20:58:28 -0400
committerJosh Ferrell <josh@vector35.com>2024-09-13 20:58:28 -0400
commitf068de0f2d2fec6ca6d039a9648316f35e6ad965 (patch)
treefffa286f3251cd4b18f7ae43615824871ad77776 /arch/powerpc/arch_ppc.cpp
parent590b594850ccd15b9e2cb2b0e8f3050d782647b3 (diff)
Fix many warnings
Diffstat (limited to 'arch/powerpc/arch_ppc.cpp')
-rw-r--r--arch/powerpc/arch_ppc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/arch_ppc.cpp b/arch/powerpc/arch_ppc.cpp
index 89cfa282..b9087aef 100644
--- a/arch/powerpc/arch_ppc.cpp
+++ b/arch/powerpc/arch_ppc.cpp
@@ -680,7 +680,7 @@ class PowerpcArchitecture: public Architecture
case PPC_INS_BCL:
case PPC_INS_BL:
case PPC_INS_BLA:
- snprintf(buf, sizeof(buf), "0x%llx", op->imm);
+ snprintf(buf, sizeof(buf), "0x%" PRIx64, op->imm);
result.emplace_back(CodeRelativeAddressToken, buf, (uint32_t) op->imm, 4);
break;
case PPC_INS_ADDIS:
@@ -693,9 +693,9 @@ class PowerpcArchitecture: public Architecture
break;
default:
if (op->imm < 0 && op->imm > -0x10000)
- snprintf(buf, sizeof(buf), "-0x%llx", -op->imm);
+ snprintf(buf, sizeof(buf), "-0x%" PRIx64, -op->imm);
else
- snprintf(buf, sizeof(buf), "0x%llx", op->imm);
+ snprintf(buf, sizeof(buf), "0x%" PRIx64, op->imm);
result.emplace_back(IntegerToken, buf, op->imm, 4);
}