mirror of
https://github.com/g-truc/glm.git
synced 2025-04-13 08:43:00 +00:00
Fixed merge
This commit is contained in:
commit
cb05c4c00f
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ namespace glm
|
|||
inline genType trunc(genType const & x)
|
||||
{
|
||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'trunc' only accept floating-point inputs");
|
||||
return floor(abs(x));
|
||||
return x < 0 ? -floor(-x) : floor(x);;
|
||||
}
|
||||
|
||||
template <typename valType>
|
||||
|
|
Loading…
Add table
Reference in a new issue