Skip to content

ensure_user_var: raise when the name is declared with another type - #409

Merged
g5t merged 1 commit into
mainfrom
user-var-type-conflict-raises
Nov 17, 2026
Merged

g5t merged 1 commit into
mainfrom
user-var-type-conflict-raises

Conversation

@g5t

@g5t g5t commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

A conflicting declaration only logged a warning and kept the first one. Components write USERVARS through particle_setvar_void, which copies sizeof({the declared type}), so the kept declaration could make every such write the wrong size.

A conflicting declaration only logged a warning and kept the first one.
Components write USERVARS through particle_setvar_void, which copies
sizeof(the declared type), so the kept declaration silently made every
such write the wrong size.
@g5t
g5t merged commit 0bdf6b3 into main Nov 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant