Browse Source

Fixed error: comparing floating point with == or != is unsafe

Groove 7 years ago
parent
commit
34eb95d219
1 changed files with 2 additions and 22 deletions
  1. 2 22
      test/core/core_setup_message.cpp

+ 2 - 22
test/core/core_setup_message.cpp

@@ -194,36 +194,16 @@ int test_cpp_version()
 
 
 int test_operators()
 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 R = A != B;
 	bool S = A == B;
 	bool S = A == B;
 
 
 	return (S && !R) ? 0 : 1;
 	return (S && !R) ? 0 : 1;
 }
 }
 
 
-template<typename T>
-struct vec
-{
-
-};
-
-template<template<typename> class C, typename T>
-struct Class
-{
-
-};
-
-template<typename T>
-struct Class<vec, T>
-{
-
-};
-
 int main()
 int main()
 {
 {
-	//Class<vec, float> C;
-
 	int Error = 0;
 	int Error = 0;
 
 
 	Error += test_cpp_version();
 	Error += test_cpp_version();