diff --git a/test/core/core_cpp_defaulted_ctor.cpp b/test/core/core_cpp_defaulted_ctor.cpp index ea927d12..91047768 100644 --- a/test/core/core_cpp_defaulted_ctor.cpp +++ b/test/core/core_cpp_defaulted_ctor.cpp @@ -121,7 +121,7 @@ static int test_quat_memcpy() glm::quat const A = glm::quat(1, 0, 0, 0); glm::quat B; std::memcpy(&B, &A, sizeof(glm::quat)); - Error += B == A ? 0 : 1; + Error += glm::all(glm::equal(B, A, glm::epsilon())) ? 0 : 1; } return Error;