libplist icon indicating copy to clipboard operation
libplist copied to clipboard

bplist: Fix strict aliasing violations

Open MatthewGentoo opened this issue 2 years ago • 0 comments

Casting a float pointer to an int pointer is a strict aliasing violation (-Wstrict-aliasing) and is undefined behaviour (although, it did not seem to cause any issues in practice here).

An optimising compiler should elide the memcpys added by this commit.

MatthewGentoo avatar Jul 25 '22 18:07 MatthewGentoo