Skip to content

Commit

Permalink
Merge pull request g-truc#904 from Zuzu-Typ/gauss_rand
Browse files Browse the repository at this point in the history
Silence C4244 warning g-truc#904
  • Loading branch information
Groovounet authored Jun 21, 2019
2 parents 7d6145e + bc70a03 commit 5726c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glm/gtc/random.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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 static_cast<genType>(x2 * Deviation * Deviation * sqrt((genType(-2) * log(w)) / w) + Mean);
}

template<length_t L, typename T, qualifier Q>
Expand Down

0 comments on commit 5726c5c

Please sign in to comment.