Corrected potential C++ type punning issues.