Skip to content

Commit

Permalink
fix the precedence issue
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Sep 13, 2024
1 parent 2c3ce19 commit 05207a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/X64Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05207a1

Please sign in to comment.