From 1fe1962534849cc885f5e107089cfc3f99ff7574 Mon Sep 17 00:00:00 2001 From: egasimus <1656054+egasimus@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:55:29 +0200 Subject: [PATCH] wasm32: define c_uint_fast16_t as u32 --- simplicity-sys/src/ffi.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simplicity-sys/src/ffi.rs b/simplicity-sys/src/ffi.rs index d2e901d5..c08f78ff 100644 --- a/simplicity-sys/src/ffi.rs +++ b/simplicity-sys/src/ffi.rs @@ -21,10 +21,8 @@ pub type c_size_t = usize; pub type c_uint_fast8_t = u8; #[cfg(any(target_os = "macos", target_os = "ios"))] pub type c_uint_fast16_t = u16; -#[cfg(any(target_os = "windows", target_os = "android"))] +#[cfg(any(target_os = "windows", target_os = "android", target_arch = "wasm32"))] pub type c_uint_fast16_t = u32; -#[cfg(target_arch = "wasm32")] -pub type c_uint_fast16_t = u16; #[cfg(not(any( target_os = "macos", target_os = "ios",