diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index 742fbde3..27a5c541 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -416,7 +416,7 @@ namespace quaternion{ ) { T angle = acos(dot(x, y)); - return (sin((1 - a) * angle) * x + sin(a * angle) * y) / sin(angle); + return (sin((T(1) - a) * angle) * x + sin(a * angle) * y) / sin(angle); } template