Skip to content

Commit 3d88796

Browse files
committed
Cast handle to cs_struct for usage.
1 parent 2bda8f5 commit 3d88796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/ARM/ARMMapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "ARMDisassembler.h"
1515

1616
const char *ARM_reg_name(csh handle, unsigned int reg) {
17-
if (handle.syntax & CS_OPT_SYNTAX_NOREGNAME) {
17+
if (((cs_struct *)(uintptr_t)handle)->syntax & CS_OPT_SYNTAX_NOREGNAME) {
1818
return getRegisterName(reg, ARM_RegNamesRaw);
1919
}
2020
return getRegisterName(reg, ARM_NoRegAltName);

0 commit comments

Comments
 (0)