Skip to content

Commit

Permalink
Cast handle to cs_struct for usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 22, 2023
1 parent 5533eab commit cd144c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ARMDisassembler.h"

const char *ARM_reg_name(csh handle, unsigned int reg) {
if (handle.syntax & CS_OPT_SYNTAX_NOREGNAME) {
if (((cs_struct *)(uintptr_t)handle)->syntax & CS_OPT_SYNTAX_NOREGNAME) {
return getRegisterName(reg, ARM_RegNamesRaw);
}
return getRegisterName(reg, ARM_NoRegAltName);
Expand Down

0 comments on commit cd144c7

Please sign in to comment.