Update core_func_common.cpp

This commit is contained in:
posophe 2015-11-16 15:43:28 +01:00
parent 80d5ca6c4c
commit 584c144c01

View File

@ -222,8 +222,8 @@ namespace floatBitsToInt
float A = 1.0f;
int B = glm::floatBitsToInt(A);
float C = glm::intBitsToFloat(B);
int D;
std::memcpy(&D, &A, sizeof(D));
int D;
std::memcpy(&D, &A, sizeof(D));
Error += B == D ? 0 : 1;
Error += A == C ? 0 : 1;
}