Browse Source

Silence C4244 warning

Silenced a C4244 warning in gaussRand.
Zuzu-Typ 6 years ago
parent
commit
a201957cf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtc/random.inl

+ 1 - 1
glm/gtc/random.inl

@@ -228,7 +228,7 @@ namespace detail
 			w = x1 * x1 + x2 * x2;
 			w = x1 * x1 + x2 * x2;
 		} while(w > genType(1));
 		} 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<length_t L, typename T, qualifier Q>
 	template<length_t L, typename T, qualifier Q>