mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
Silence C4244 warning
Silenced a C4244 warning in gaussRand.
This commit is contained in:
parent
fce2abd01c
commit
a201957cf9
@ -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<length_t L, typename T, qualifier Q>
|
||||
|
Loading…
Reference in New Issue
Block a user