From 34eb95d2191bbbf03963d83679519cecd908cb4e Mon Sep 17 00:00:00 2001 From: Groove Date: Sat, 28 Jul 2018 19:45:40 +0200 Subject: [PATCH] Fixed error: comparing floating point with == or != is unsafe --- test/core/core_setup_message.cpp | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/test/core/core_setup_message.cpp b/test/core/core_setup_message.cpp index 2908ada3..cb2c8483 100644 --- a/test/core/core_setup_message.cpp +++ b/test/core/core_setup_message.cpp @@ -194,36 +194,16 @@ int test_cpp_version() int test_operators() { - glm::vec3 A(1.0f); - glm::vec3 B(1.0f); + glm::ivec3 A(1.0f); + glm::ivec3 B(1.0f); bool R = A != B; bool S = A == B; return (S && !R) ? 0 : 1; } -template -struct vec -{ - -}; - -template class C, typename T> -struct Class -{ - -}; - -template -struct Class -{ - -}; - int main() { - //Class C; - int Error = 0; Error += test_cpp_version();