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

[GDScript] Fix incorrect compound assignment #75885

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

AThousandShips
Copy link
Member

@AThousandShips AThousandShips commented Apr 10, 2023

Reverts in-place compound assignments

Added test to ensure correctness

Added tests for array assignments as well, as per #76041

Found that this causes further bugs and decided to just revert the change and leave it up for future fixes as it seems very tricky and many pitfalls

This reverts #72056

Fixes #75832
Fixes #76041
Regression from #72056

@AThousandShips AThousandShips requested a review from a team as a code owner April 10, 2023 10:25
@YuriSizov YuriSizov added this to the 4.1 milestone Apr 10, 2023
@AThousandShips AThousandShips force-pushed the compound_fix branch 4 times, most recently from 76b6827 to 7a15621 Compare April 11, 2023 10:55
Reverts in-place compound assignments

Added test to ensure correctness
@AThousandShips
Copy link
Member Author

AThousandShips commented Apr 14, 2023

As this is a relatively destructive bug with very confusing effects and unpredictable I feel reverting is best, as it was a performance change

Considered commenting out the broken code and adding a fixme pointing to the issue, but think it's best to leave it a clean slate for future work on the feature

@vmedea
Copy link
Contributor

vmedea commented Apr 14, 2023

i can confirm that this fixes #76041

@akien-mga
Copy link
Member

Thanks!

@AThousandShips
Copy link
Member Author

Thank you!

@AThousandShips AThousandShips deleted the compound_fix branch April 25, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array += Array is broken Multiplication of integer and float gives wrong result
5 participants