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

This commit is contained in:
Groove
2018-07-28 20:24:45 +02:00
parent 6c981b07c1
commit 5ecc27ff93
7 changed files with 73 additions and 70 deletions

View File

@@ -194,8 +194,8 @@ int test_cpp_version()
int test_operators()
{
glm::ivec3 A(1.0f);
glm::ivec3 B(1.0f);
glm::ivec3 A(1);
glm::ivec3 B(1);
bool R = A != B;
bool S = A == B;