From ed0f3b1b8593f6b76fbb64c53a0885073c1c1979 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Fri, 19 Dec 2025 11:12:20 -0800 Subject: Fix many of the warnings that show up when compiling with GCC 15.2 --- arch/powerpc/disassembler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'arch/powerpc/disassembler.cpp') diff --git a/arch/powerpc/disassembler.cpp b/arch/powerpc/disassembler.cpp index 54e3c87c..e24f273b 100644 --- a/arch/powerpc/disassembler.cpp +++ b/arch/powerpc/disassembler.cpp @@ -1,7 +1,6 @@ #include -#include #include "binaryninjaapi.h" @@ -98,14 +97,14 @@ bool PushOperandTokens(string& result, const Operand* op) case PPC_OP_SIMM: if (op->simm < 0 && op->simm > -0x10000) - snprintf(buf, sizeof(buf), "-0x%llx", -op->simm); + snprintf(buf, sizeof(buf), "-0x%" PRIx64, -op->simm); else - snprintf(buf, sizeof(buf), "0x%llx", op->simm); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->simm); result += buf; break; case PPC_OP_LABEL: - snprintf(buf, sizeof(buf), "0x%llx", op->label); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->label); result += buf; break; -- cgit v1.3.1