From d20fe00bc8831328aaa924e1915dfaddcccb16d4 Mon Sep 17 00:00:00 2001 From: billow Date: Fri, 2 Jun 2023 09:35:06 +0800 Subject: [PATCH] Fixes capstone update --- librz/analysis/arch/arm/arm_il64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librz/analysis/arch/arm/arm_il64.c b/librz/analysis/arch/arm/arm_il64.c index 6b552596c9..70a29ae230 100644 --- a/librz/analysis/arch/arm/arm_il64.c +++ b/librz/analysis/arch/arm/arm_il64.c @@ -1708,7 +1708,7 @@ static RzILOpEffect *movn(cs_insn *insn) { static RzILOpEffect *msr(cs_insn *insn) { cs_arm64_op *op = &insn->detail->arm64.operands[0]; #if CS_API_MAJOR > 4 - if (op->type != ARM64_OP_SYS || op->sys != ARM64_SYSREG_NZCV) { + if (op->type != ARM64_OP_SYS || (ut64)op->sys != (ut64)ARM64_SYSREG_NZCV) { return NULL; } #else @@ -1803,7 +1803,7 @@ static RzILOpEffect *mrs(cs_insn *insn) { } cs_arm64_op *op = &insn->detail->arm64.operands[1]; #if CS_API_MAJOR > 4 - if (op->type != ARM64_OP_SYS || op->sys != ARM64_SYSREG_NZCV) { + if (op->type != ARM64_OP_SYS || (ut64)op->sys != (ut64)ARM64_SYSREG_NZCV) { return NULL; } #else