Skip to content

Conversation

@TimWolla
Copy link
Member

@TimWolla TimWolla commented Feb 3, 2026

Since the actual type of the storage location is not known, a void* is more appropriate and avoids explicit casts that are no more safe than the implicit cast from void*.

Since the actual type of the storage location is not known, a `void*` is more
appropriate and avoids explicit casts that are no more safe than the implicit
cast from `void*`.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

LGTM. Don't forget the note in UPGRADING.INTERNALS, void* pointer arithmetics don't reliably warn in compilers.

@TimWolla
Copy link
Member Author

TimWolla commented Feb 3, 2026

void* pointer arithmetics don't reliably warn in compilers.

sigh, thanks for the hint.

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.

2 participants