3 ms·
cast != read. Deferencing a pointer of incorrect alignment will generate traps on many architectures.
by cryptonector 9y ago
cast != read.
Deferencing a pointer of incorrect alignment will generate traps on many architectures.
- Cyph0n 9y agoAgain, the pointers are to addresses that are guaranteed to be aligned on my target architecture. Nonetheless, I have taken the advice in this thread and converted my code to use std::memcpy instead.