Skip to content

transpile: Pass correct types when translating prefix inc/dec operators#1689

Open
Rua wants to merge 1 commit intoimmunant:masterfrom
Rua:prefix-operator-types
Open

transpile: Pass correct types when translating prefix inc/dec operators#1689
Rua wants to merge 1 commit intoimmunant:masterfrom
Rua:prefix-operator-types

Conversation

@Rua
Copy link
Copy Markdown
Contributor

@Rua Rua commented Mar 25, 2026

Firstly, the types being passed were wrong in general, as if the arguments had been switched around. But also, for pointer increment/decrement, the implied RHS is not itself a pointer. So this PR solves that by using int as the implied type there instead.

@Rua Rua force-pushed the prefix-operator-types branch from bc3468b to 97cd9eb Compare March 25, 2026 12:15
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.

Incorrect Use of .offset_from(1) When Transpiling Pointer Decrement on Struct Field

1 participant