Strict aliasing fix (credit: IAmTheOneTheyCallNeo)