Skip to content

Commit

Permalink
GDExtensionCallErrorType is i32 on windows... (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano authored Dec 5, 2023
1 parent 340541b commit 1f513f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust-script/src/runtime/rust_script_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Script> {
Expand Down

0 comments on commit 1f513f6

Please sign in to comment.