reduce the size of @operands for arm & arm64
diff --git a/bindings/python/capstone/arm.py b/bindings/python/capstone/arm.py
index 8388560..30461ba 100644
--- a/bindings/python/capstone/arm.py
+++ b/bindings/python/capstone/arm.py
@@ -78,7 +78,7 @@
('update_flags', ctypes.c_bool),
('writeback', ctypes.c_bool),
('op_count', ctypes.c_uint8),
- ('operands', arm_op * 32),
+ ('operands', arm_op * 20),
)
def get_arch_info(arch):
diff --git a/bindings/python/capstone/arm64.py b/bindings/python/capstone/arm64.py
index ccf92f7..6702243 100644
--- a/bindings/python/capstone/arm64.py
+++ b/bindings/python/capstone/arm64.py
@@ -85,7 +85,7 @@
('update_flags', ctypes.c_bool),
('writeback', ctypes.c_bool),
('op_count', ctypes.c_uint8),
- ('operands', arm64_op * 32),
+ ('operands', arm64_op * 8),
)
def get_arch_info(a):
diff --git a/include/arm.h b/include/arm.h
index 27cad95..ecbdd35 100644
--- a/include/arm.h
+++ b/include/arm.h
@@ -90,7 +90,7 @@
// or 0 when instruction has no operand.
uint8_t op_count;
- cs_arm_op operands[32]; // operands for this instruction.
+ cs_arm_op operands[20]; // operands for this instruction.
} cs_arm;
// ARM registers
diff --git a/include/arm64.h b/include/arm64.h
index c15a3fd..9f72117 100644
--- a/include/arm64.h
+++ b/include/arm64.h
@@ -99,7 +99,7 @@
// or 0 when instruction has no operand.
uint8_t op_count;
- cs_arm64_op operands[32]; // operands for this instruction.
+ cs_arm64_op operands[8]; // operands for this instruction.
} cs_arm64;
// ARM64 registers