libplist
libplist copied to clipboard
bplist: Fix strict aliasing violations
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.