Added missing assert for sqrt

master
Christophe Riccio ago%!(EXTRA string=12 years)
parent 5ea160413d
commit d3b8b25dd4
  1. 2
      glm/core/func_exponential.inl

@ -146,6 +146,8 @@ namespace detail
std::numeric_limits<genType>::is_iec559, std::numeric_limits<genType>::is_iec559,
"'sqrt' only accept floating-point inputs"); "'sqrt' only accept floating-point inputs");
assert(x >= genType(0));
return std::sqrt(x); return std::sqrt(x);
} }

Loading…
Cancel
Save