Skip to content

Properly set GDExtensionBool is_valid to true in to_string function.#1145

Merged
Bromeon merged 2 commits intogodot-rust:masterfrom
Yarwin:bugfix-set-is-valid-in-to-string
Apr 28, 2025
Merged

Properly set GDExtensionBool is_valid to true in to_string function.#1145
Bromeon merged 2 commits intogodot-rust:masterfrom
Yarwin:bugfix-set-is-valid-in-to-string

Conversation

@Yarwin
Copy link
Contributor

@Yarwin Yarwin commented Apr 28, 2025

it does what it says on the tin, duh.

GDExtension never checked this bool before: godotengine/godot#105546. It was never initialized by either side (UB: https://doc.rust-lang.org/reference/behavior-considered-undefined.html#r-undefined.validity.undef)

@Yarwin Yarwin added bug ub Undefined behavior labels Apr 28, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1145

@Bromeon Bromeon added the c: ffi Low-level components and interaction with GDExtension API label Apr 28, 2025
Copy link
Member

@Bromeon Bromeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

I was wondering why this "worked" for the longest time 😁

@Yarwin Yarwin added this pull request to the merge queue Apr 28, 2025
@Bromeon Bromeon removed this pull request from the merge queue due to a manual request Apr 28, 2025
@Bromeon
Copy link
Member

Bromeon commented Apr 28, 2025

Canceled merge and added commit that resets CI back to latest nightly Godot, undoing the temporary fix in #1143.

This way, we actually test if itests pass with Godot changes in godotengine/godot#105546 🙂

@Bromeon Bromeon enabled auto-merge April 28, 2025 11:23
@Bromeon Bromeon added this pull request to the merge queue Apr 28, 2025
Merged via the queue into godot-rust:master with commit 086f7e6 Apr 28, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug c: ffi Low-level components and interaction with GDExtension API ub Undefined behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants