Skip to content
Snippets Groups Projects
Commit 0f9992c7 authored by Adam Borowski's avatar Adam Borowski Committed by Adam Borowski
Browse files

common: vecq: rewrite a macro to avoid a strict aliasing violation

The compiler assumed that pointers to differently-sized structs can't
alias each other, and reordered accesses to vec->back in some cases.

Thus, access members via the real-typed struct; this requires putting
this part into a macro.
parent 3489ca47
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment