diff --git a/glm/gtx/vector_angle.inl b/glm/gtx/vector_angle.inl index c51dfb4c..c361314b 100644 --- a/glm/gtx/vector_angle.inl +++ b/glm/gtx/vector_angle.inl @@ -36,7 +36,7 @@ namespace glm { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'angle' only accept floating-point inputs"); - genType const Angle(acos(clamp(dot(x, y), T(0), T(1))); + T const Angle(acos(clamp(dot(x, y), T(0), T(1)))); #ifdef GLM_FORCE_RADIANS return Angle;