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

This commit is contained in:
Groove
2018-07-28 21:18:15 +02:00
parent 21d030ad3d
commit 3e364981e8
3 changed files with 8 additions and 7 deletions

View File

@@ -10,8 +10,8 @@ static int test_vec1_operators()
{
int Error(0);
glm::ivec1 A(1.0f);
glm::ivec1 B(1.0f);
glm::ivec1 A(1);
glm::ivec1 B(1);
{
bool R = A != B;
bool S = A == B;