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 augmented assignment #585

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Fix augmented assignment #585

merged 1 commit into from
Sep 5, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Sep 5, 2024

It's possible that part of the expression of an augmented assignment doesn't resolve to an int. In such a case, the current code tries to bitwise compute the values anyway. This of course results in a syntax error.

This fix in this change ensures both left and right side of the expression resolve to an int value. Other bitwise computable values in the future could also be added.

It's possible that part of the expression of an augmented
assignment doesn't resolve to an int. In such a case,
the current code tries to bitwise compute the values anyway.
This of course results in a syntax error.

This fix in this change ensures both left and right side
of the expression resolve to an int value. Other bitwise
computable values in the future could also be added.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
@ericwb ericwb enabled auto-merge (squash) September 5, 2024 00:28
@ericwb ericwb disabled auto-merge September 5, 2024 00:28
@ericwb ericwb merged commit f1f386c into securesauce:main Sep 5, 2024
8 checks passed
@ericwb ericwb deleted the fix_augment branch September 5, 2024 00:28
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