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

Fixes #321 for arithmetic operators #437

Merged
merged 4 commits into from
Feb 15, 2024
Merged

Fixes #321 for arithmetic operators #437

merged 4 commits into from
Feb 15, 2024

Conversation

kako57
Copy link
Contributor

@kako57 kako57 commented Feb 13, 2024

This fixes the operator precedence issue stated in #321, where the decompiler does not preserve the proper order of operations in the decompiled output.

This fix applies for arithmetic operations, specifically when the decompiler sees an add and subtract operation, or a divide and multiply at the same level of precedence.

Copy link
Owner

@zrax zrax left a comment

Choose a reason for hiding this comment

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

I added a test case for it based on the referenced issue. Otherwise, looks great, thanks!

@zrax zrax merged commit 0a50980 into zrax:master Feb 15, 2024
5 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.

2 participants