From 05207a17338fbe35032cd5ac4921f5d03095526e Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:53:04 +0300 Subject: [PATCH] fix the precedence issue --- src/generator/X64Generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator/X64Generator.cpp b/src/generator/X64Generator.cpp index faedc36..2a955ba 100644 --- a/src/generator/X64Generator.cpp +++ b/src/generator/X64Generator.cpp @@ -426,7 +426,7 @@ Result<> X64HandlerGenerator::relocateRIPInstruction(cs_insn* insn, uint8_t* buf originalAddress += size; return Ok(); } - else if (detail->x86.encoding.modrm_offset > 0 && (detail->x86.modrm | 0b11000111 == 5)) { + else if (detail->x86.encoding.modrm_offset > 0 && ((detail->x86.modrm | 0b11000111) == 5)) { // Trying to catch XMM instructions X64Assembler a(trampolineAddress); RegMem64 m;