Skip to content

Fix void cast for pointer dereference#104

Merged
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:void-cast
May 17, 2026
Merged

Fix void cast for pointer dereference#104
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:void-cast

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented May 16, 2026

(void)(*p) tried to move the dereference value. To fix this, wrap the *p in a &(...) because borrowing the value does not move it.

@nunoplopes nunoplopes merged commit ad9215a into Cpp2Rust:master May 17, 2026
9 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.

2 participants