From 2baf928bd50383d2fd8104ffe22c578e906d5ab6 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 25 May 2011 10:00:13 +0100 Subject: [PATCH] Fixed type cast --- glm/gtc/quaternion.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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