mirror of
https://github.com/g-truc/glm.git
synced 2024-12-01 20:24:38 +00:00
Fixed build error
This commit is contained in:
parent
472f2c13b7
commit
9d9a3e07c9
@ -121,7 +121,7 @@ static int test_quat_memcpy()
|
|||||||
glm::quat const A = glm::quat(1, 0, 0, 0);
|
glm::quat const A = glm::quat(1, 0, 0, 0);
|
||||||
glm::quat B;
|
glm::quat B;
|
||||||
std::memcpy(&B, &A, sizeof(glm::quat));
|
std::memcpy(&B, &A, sizeof(glm::quat));
|
||||||
Error += B == A ? 0 : 1;
|
Error += glm::all(glm::equal(B, A, glm::epsilon<float>())) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
Loading…
Reference in New Issue
Block a user