Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BinNat on C fixing a while loop compilation issue #1287

Merged
merged 2 commits into from
Dec 1, 2024

Conversation

johnynek
Copy link
Owner

in a while loop, we need to atomically update the variables. In python we do this with tuple assignment, but here we were just iteratively assigning, but if a previous assignment updated a value we later need, that caused a bug.

The solution I made was assign everything to a temp variable, then assign all the temp variables to the loop variables.

@johnynek johnynek merged commit 147a161 into main Dec 1, 2024
8 checks passed
@johnynek johnynek deleted the oscar/20241130-fix_binnat_tests branch December 1, 2024 01:31
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