Skip to content

Commit

Permalink
Revert constant of CS_OP_MEM to v5 value. (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 authored Feb 18, 2024
1 parent 5852885 commit 2971910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bindings/python/capstone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
'CS_OP_INVALID',
'CS_OP_REG',
'CS_OP_IMM',
'CS_OP_FP',
'CS_OP_MEM',
'CS_OP_FP',

'CS_GRP_INVALID',
'CS_GRP_JUMP',
Expand Down Expand Up @@ -290,8 +290,8 @@
CS_OP_INVALID = 0 # uninitialized/invalid operand.
CS_OP_REG = 1 # Register operand.
CS_OP_IMM = 2 # Immediate operand.
CS_OP_FP = 3 # Floating-Point operand.
CS_OP_MEM = 0x80 # Memory operand. Can be ORed with another operand type.
CS_OP_MEM = 3 # Memory operand. Can be ORed with another operand type.
CS_OP_FP = 4 # Floating-Point operand.

# Common instruction groups - to be consistent across all architectures.
CS_GRP_INVALID = 0 # uninitialized/invalid group.
Expand Down
3 changes: 1 addition & 2 deletions include/capstone/capstone.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,8 @@ typedef enum cs_op_type {
CS_OP_INVALID = 0, ///< uninitialized/invalid operand.
CS_OP_REG, ///< Register operand.
CS_OP_IMM, ///< Immediate operand.
CS_OP_MEM, ///< Memory operand. Can be ORed with another operand type.
CS_OP_FP, ///< Floating-Point operand.
CS_OP_MEM =
0x80, ///< Memory operand. Can be ORed with another operand type.
} cs_op_type;

/// Common instruction operand access types - to be consistent across all architectures.
Expand Down

0 comments on commit 2971910

Please sign in to comment.