diff --git a/crates/c-api/src/trap.rs b/crates/c-api/src/trap.rs index 55beff0629..479f30f430 100644 --- a/crates/c-api/src/trap.rs +++ b/crates/c-api/src/trap.rs @@ -116,7 +116,7 @@ pub(crate) fn error_trace<'a>(error: &'a Error, out: &mut wasm_frame_vec_t<'a>) } #[no_mangle] -pub extern "C" fn wasmtime_trap_code(raw: &wasm_trap_t, code: &mut i32) -> bool { +pub extern "C" fn wasmtime_trap_code(raw: &wasm_trap_t, code: &mut u8) -> bool { let trap = match raw.error.downcast_ref::() { Some(trap) => trap, None => return false,