Fixed warning tests

This commit is contained in:
Christophe Riccio
2017-08-07 14:34:28 +02:00
parent 336a949cf8
commit a41c4d83d2
2 changed files with 11 additions and 4 deletions

View File

@@ -188,8 +188,8 @@ namespace iround
for(float f = 0.0f; f < 3.1f; f += 0.05f)
{
int RoundFast = glm::iround(f);
int RoundSTD = glm::round(f);
int RoundFast = static_cast<int>(glm::iround(f));
int RoundSTD = static_cast<int>(glm::round(f));
Error += RoundFast == RoundSTD ? 0 : 1;
assert(!Error);
}