mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Added missing assert for sqrt
This commit is contained in:
parent
5ea160413d
commit
d3b8b25dd4
@ -146,6 +146,8 @@ namespace detail
|
||||
std::numeric_limits<genType>::is_iec559,
|
||||
"'sqrt' only accept floating-point inputs");
|
||||
|
||||
assert(x >= genType(0));
|
||||
|
||||
return std::sqrt(x);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user