Fixed a type-punned warning in compilation