diff --git a/glm/detail/_noise.hpp b/glm/detail/_noise.hpp index f678a3db..313530e8 100644 --- a/glm/detail/_noise.hpp +++ b/glm/detail/_noise.hpp @@ -35,31 +35,31 @@ namespace detail template GLM_FUNC_QUALIFIER T mod289(T const & x) { - return x - floor(x * T(1.0 / 289.0)) * T(289.0); + return x - floor(x * static_cast(1.0) / static_cast(289.0)) * static_cast(289.0); } template GLM_FUNC_QUALIFIER T permute(T const & x) { - return mod289(((x * T(34)) + T(1)) * x); + return mod289(((x * static_cast(34)) + static_cast(1)) * x); } template GLM_FUNC_QUALIFIER tvec2 permute(tvec2 const & x) { - return mod289(((x * T(34)) + T(1)) * x); + return mod289(((x * static_cast(34)) + static_cast(1)) * x); } template GLM_FUNC_QUALIFIER tvec3 permute(tvec3 const & x) { - return mod289(((x * T(34)) + T(1)) * x); + return mod289(((x * static_cast(34)) + static_cast(1)) * x); } template GLM_FUNC_QUALIFIER tvec4 permute(tvec4 const & x) { - return mod289(((x * T(34)) + T(1)) * x); + return mod289(((x * static_cast(34)) + static_cast(1)) * x); } /* template class vecType> diff --git a/glm/detail/func_exponential.inl b/glm/detail/func_exponential.inl index 9c03129e..c6d59e62 100644 --- a/glm/detail/func_exponential.inl +++ b/glm/detail/func_exponential.inl @@ -153,68 +153,53 @@ namespace detail VECTORIZE_VEC(sqrt) - template - GLM_FUNC_QUALIFIER genType inversesqrt + namespace detail + { + template