summaryrefslogtreecommitdiff
path: root/math/glm/files/patch-glm_ext_quaternion__common.inl
blob: 6a489b479f5d761072517935562f48e9a576a6be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- glm/ext/quaternion_common.inl.orig	2020-04-13 17:41:16 UTC
+++ glm/ext/quaternion_common.inl
@@ -104,7 +104,7 @@ namespace glm
         {
             // Graphics Gems III, page 96
             T angle = acos(cosTheta);
-            T phi = angle + k * glm::pi<T>();
+            T phi = angle + static_cast<T>(k) * glm::pi<T>();
             return (sin(angle - a * phi)* x + sin(a * phi) * z) / sin(angle);
         }
     }