Skip to content

fix constness of field access through a pointer - #3339

Merged
techatrix merged 1 commit into
zigtools:masterfrom
sergot:fix-field-pointer-constness
Dec 3, 2026
Merged

techatrix merged 1 commit into
zigtools:masterfrom
sergot:fix-field-pointer-constness

Conversation

@sergot

@sergot sergot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Hi all, my first contribution here, feedback appreciated :)

Fixes #3328 , I encountered the same problem as the author of this issue, found a simple solution but not sure if it's the right way

@techatrix
techatrix force-pushed the fix-field-pointer-constness branch from b50acc6 to 0e90feb Compare December 3, 2026 21:02

@techatrix techatrix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That appears to be the correct fix. Thank you

@techatrix
techatrix merged commit 98e5889 into zigtools:master Dec 3, 2026
5 of 6 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.

taking address of a field of a mutable pointer to a struct produces a constant pointer to the field

2 participants