Skip to content

[cppia] Fix int overflow in arithmetic assignments - #1258

Merged
Simn merged 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cppia-int-mult-assign-overflow
Nov 26, 2025
Merged

[cppia] Fix int overflow in arithmetic assignments#1258
Simn merged 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cppia-int-mult-assign-overflow

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

Currently, the cppia interp runtime uses float operations for arithmetic assignments such as *=. This results in inconsistent int overflow behaviour.

Closes #1257

@Simn

Simn commented Nov 25, 2025

Copy link
Copy Markdown
Member

Please resolve the conflict!

@tobil4sk
tobil4sk force-pushed the fix/cppia-int-mult-assign-overflow branch from 50fdfb6 to 98d6a1b Compare November 25, 2025 17:34
Currently, the cppia interp runtime uses float operations for arithmetic
assignments such as *=. This results in inconsistent int overflow
behaviour.
@tobil4sk
tobil4sk force-pushed the fix/cppia-int-mult-assign-overflow branch from 98d6a1b to 54ced66 Compare November 26, 2025 10:58
@tobil4sk

Copy link
Copy Markdown
Member Author

Conflict resolved and ci is finally green as well!

@Simn
Simn merged commit 767fe94 into HaxeFoundation:master Nov 26, 2025
120 checks passed
@tobil4sk

Copy link
Copy Markdown
Member Author

Thanks!

@tobil4sk
tobil4sk deleted the fix/cppia-int-mult-assign-overflow branch November 26, 2025 16:42
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.

[cppia] Wrong parentheses priority for Int32

2 participants