mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 06:44:35 +00:00
Update core_func_common.cpp
This commit is contained in:
parent
80d5ca6c4c
commit
584c144c01
@ -222,8 +222,8 @@ namespace floatBitsToInt
|
|||||||
float A = 1.0f;
|
float A = 1.0f;
|
||||||
int B = glm::floatBitsToInt(A);
|
int B = glm::floatBitsToInt(A);
|
||||||
float C = glm::intBitsToFloat(B);
|
float C = glm::intBitsToFloat(B);
|
||||||
int D;
|
int D;
|
||||||
std::memcpy(&D, &A, sizeof(D));
|
std::memcpy(&D, &A, sizeof(D));
|
||||||
Error += B == D ? 0 : 1;
|
Error += B == D ? 0 : 1;
|
||||||
Error += A == C ? 0 : 1;
|
Error += A == C ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user