Skip to content

Commit

Permalink
reduce the size of @operands for arm & arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Nov 29, 2013
1 parent bbd4131 commit f1656de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/python/capstone/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class _cs_arm(ctypes.Structure):
('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):
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/capstone/arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class _cs_arm64(ctypes.Structure):
('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):
Expand Down
2 changes: 1 addition & 1 deletion include/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ typedef struct cs_arm {
// 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
Expand Down
2 changes: 1 addition & 1 deletion include/arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ typedef struct cs_arm64 {
// 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
Expand Down

0 comments on commit f1656de

Please sign in to comment.