diff --git a/glm/gtc/random.inl b/glm/gtc/random.inl index de10a409..0cb111a2 100644 --- a/glm/gtc/random.inl +++ b/glm/gtc/random.inl @@ -228,7 +228,7 @@ namespace detail w = x1 * x1 + x2 * x2; } while(w > genType(1)); - return x2 * Deviation * Deviation * sqrt((genType(-2) * log(w)) / w) + Mean; + return (genType)(x2 * Deviation * Deviation * sqrt((genType(-2) * log(w)) / w) + Mean); } template