From 9d9a3e07c9a68fcd397f55dd07ee5448ca057010 Mon Sep 17 00:00:00 2001 From: Groove Date: Sun, 29 Jul 2018 00:43:55 +0200 Subject: [PATCH] Fixed build error --- test/core/core_cpp_defaulted_ctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;