From c9d231c35cf56cdf010ff79c23fa0549977763ec Mon Sep 17 00:00:00 2001 From: Rot127 Date: Tue, 10 Sep 2024 09:10:00 -0500 Subject: [PATCH] Fix scale tests --- bindings/python/capstone/arm.py | 4 ++-- tests/issues/issues.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/capstone/arm.py b/bindings/python/capstone/arm.py index a527c32b3b..52d6766934 100644 --- a/bindings/python/capstone/arm.py +++ b/bindings/python/capstone/arm.py @@ -7,8 +7,8 @@ # define the API class ArmOpMem(ctypes.Structure): _fields_ = ( - ('base', ctypes.c_uint), - ('index', ctypes.c_uint), + ('base', ctypes.c_int), + ('index', ctypes.c_int), ('scale', ctypes.c_int), ('disp', ctypes.c_int), ('align', ctypes.c_uint), diff --git a/tests/issues/issues.yaml b/tests/issues/issues.yaml index a6f4af0e84..471e361f67 100644 --- a/tests/issues/issues.yaml +++ b/tests/issues/issues.yaml @@ -3651,7 +3651,7 @@ test_cases: type: ARM_OP_MEM mem_base: r1 mem_index: r3 - mem_scale: 0 + mem_scale: -1 access: CS_AC_READ subtracted: 1 regs_read: [ r1, r3 ] @@ -4090,7 +4090,7 @@ test_cases: type: ARM_OP_MEM mem_base: r2 mem_index: r3 - mem_scale: 0 + mem_scale: 1 shift_type: ARM_SFT_LSL shift_value: 2 regs_read: [ r2, r3 ]