From 1f513f6b73761bbb76263b5f26dfce2018c46c6d Mon Sep 17 00:00:00 2001 From: Jovan Gerodetti Date: Tue, 5 Dec 2023 23:31:22 +0100 Subject: [PATCH] `GDExtensionCallErrorType` is i32 on windows... (#15) --- rust-script/src/runtime/rust_script_instance.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust-script/src/runtime/rust_script_instance.rs b/rust-script/src/runtime/rust_script_instance.rs index 5127315..48dd06f 100644 --- a/rust-script/src/runtime/rust_script_instance.rs +++ b/rust-script/src/runtime/rust_script_instance.rs @@ -212,6 +212,8 @@ impl ScriptInstance for RustScriptInstance { self.with_data_mut(move |data| data.call(method, rargs)) .map(Into::into) .into_result() + // GDExtensionCallErrorType is not guaranteed to be a u32 + .map_err(|err: u32| err as godot::sys::GDExtensionCallErrorType) } fn get_script(&self) -> Gd