From 1f5564f3a6748d5334f0fa48c3e88a76fdc05fd9 Mon Sep 17 00:00:00 2001 From: garnt Date: Fri, 10 May 2024 11:42:38 -0400 Subject: [PATCH] Fixed cs_support enum bug --- capstone-rs/src/capstone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capstone-rs/src/capstone.rs b/capstone-rs/src/capstone.rs index f9b5df4c..948d3a53 100644 --- a/capstone-rs/src/capstone.rs +++ b/capstone-rs/src/capstone.rs @@ -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.