Browse Source

Fixed warnings

Christophe Riccio 7 years ago
parent
commit
b3d3f12da7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      test/ext/ext_vector_relational.cpp

+ 4 - 4
test/ext/ext_vector_relational.cpp

@@ -23,8 +23,8 @@ static int test_equal()
 
 	valType const A = static_cast<valType>(1.01f);
 	valType const B = static_cast<valType>(1.02f);
-	valType const Epsilon1(0.1f);
-	valType const Epsilon2(0.001f);
+	valType const Epsilon1 = static_cast<valType>(0.1f);
+	valType const Epsilon2 = static_cast<valType>(0.001f);
 
 	int Error = 0;
 
@@ -44,8 +44,8 @@ static int test_notEqual()
 
 	valType const A = static_cast<valType>(1.01f);
 	valType const B = static_cast<valType>(1.02f);
-	valType const Epsilon1(0.1f);
-	valType const Epsilon2(0.001f);
+	valType const Epsilon1 = static_cast<valType>(0.1f);
+	valType const Epsilon2 = static_cast<valType>(0.001f);
 
 	int Error = 0;