Skip to content

Commit e8a00ce

Browse files
committed
rs: fix type conversion on windows
1 parent e3ca3d4 commit e8a00ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capstone-rs/src/arch/xtensa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub enum XtensaOperandType {
7171

7272
impl XtensaOperandType {
7373
fn new(op_type: u8, value: cs_xtensa_operand__bindgen_ty_1) -> XtensaOperandType {
74-
match op_type as u32 {
74+
match op_type as cs_xtensa_op_type::Type {
7575
cs_xtensa_op_type::XTENSA_OP_REG => {
7676
XtensaOperandType::Reg(RegId(unsafe { value.reg } as RegIdInt))
7777
}

0 commit comments

Comments
 (0)