mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 15:23:53 +00:00
Use static_cast instead of C-style
This commit is contained in:
parent
a201957cf9
commit
bc70a03adc
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ namespace detail
|
|||
w = x1 * x1 + x2 * x2;
|
||||
} while(w > genType(1));
|
||||
|
||||
return (genType)(x2 * Deviation * Deviation * sqrt((genType(-2) * log(w)) / w) + Mean);
|
||||
return static_cast<genType>(x2 * Deviation * Deviation * sqrt((genType(-2) * log(w)) / w) + Mean);
|
||||
}
|
||||
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
|
|
Loading…
Add table
Reference in a new issue