Fixed warnings

This commit is contained in:
Christophe Riccio
2017-08-08 22:31:37 +02:00
parent d712ac930f
commit f5dde80e2e
2 changed files with 11 additions and 9 deletions

View File

@@ -9,6 +9,7 @@
/// is preserved.
#include "../detail/type_int.hpp"
#include "epsilon.hpp"
#include <cmath>
#include <cfloat>
#include <limits>
@@ -304,7 +305,7 @@ namespace glm
if(x < y)
{
T temp = x;
while(temp != y)// && ulp < std::numeric_limits<std::size_t>::max())
while(glm::epsilonNotEqual(temp, y, glm::epsilon<T>()))// && ulp < std::numeric_limits<std::size_t>::max())
{
++ulp;
temp = next_float(temp);
@@ -313,7 +314,7 @@ namespace glm
else if(y < x)
{
T temp = y;
while(temp != x)// && ulp < std::numeric_limits<std::size_t>::max())
while(glm::epsilonNotEqual(temp, x, glm::epsilon<T>()))// && ulp < std::numeric_limits<std::size_t>::max())
{
++ulp;
temp = next_float(temp);