Skip to content

Commit

Permalink
Fixed cs_support enum bug
Browse files Browse the repository at this point in the history
  • Loading branch information
garnt authored and tmfink committed May 12, 2024
1 parent 57bedec commit 6d3ae9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capstone-rs/src/capstone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl Capstone {

/// Returns whether the capstone library supports a given architecture.
pub fn supports_arch(arch: Arch) -> bool {
unsafe { cs_support(arch as c_int) }
unsafe { cs_support(cs_arch::from(arch) as c_int) }
}

/// Returns whether the capstone library was compiled in diet mode.
Expand Down

0 comments on commit 6d3ae9f

Please sign in to comment.