Skip to content

Commit 1f513f6

Browse files
authored
GDExtensionCallErrorType is i32 on windows... (#15)
1 parent 340541b commit 1f513f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust-script/src/runtime/rust_script_instance.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ impl ScriptInstance for RustScriptInstance {
212212
self.with_data_mut(move |data| data.call(method, rargs))
213213
.map(Into::into)
214214
.into_result()
215+
// GDExtensionCallErrorType is not guaranteed to be a u32
216+
.map_err(|err: u32| err as godot::sys::GDExtensionCallErrorType)
215217
}
216218

217219
fn get_script(&self) -> Gd<Script> {

0 commit comments

Comments
 (0)