Skip to content

fix: unions with local variables may have incorrect size.#175

Merged
paxcut merged 1 commit into
WerWolv:masterfrom
paxcut:SizeOfUnionsWithLocals
Jul 1, 2025
Merged

fix: unions with local variables may have incorrect size.#175
paxcut merged 1 commit into
WerWolv:masterfrom
paxcut:SizeOfUnionsWithLocals

Conversation

@paxcut
Copy link
Copy Markdown
Collaborator

@paxcut paxcut commented Jul 1, 2025

If the biggest variable is local the size of the union is set to it even though local variables don't contribute to the pattern size.

The fix is to check if the variable is local before using it size in the comparison.

If the biggest variable is local the size of the union is set to it even though local variables don't contribute to the pattern size.

The fix is to check if the variable is local before using it size in the comparison.
@paxcut paxcut merged commit acc3768 into WerWolv:master Jul 1, 2025
4 checks passed
@paxcut paxcut deleted the SizeOfUnionsWithLocals branch July 1, 2025 10:27
lawm pushed a commit to lawm/PatternLanguage that referenced this pull request Mar 13, 2026
If the biggest variable is local the size of the union is set to it even though local variables don't contribute to the pattern size.

The fix is to check if the variable is local before using it size in the comparison.
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