Skip to content
Snippets Groups Projects
Commit d215908a authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] MinimalBoundingSphere: fix old style cast warning.

parent 7e8be241
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ std::vector<MathLib::Point3d*>* MinimalBoundingSphere::getRandomSpherePoints(std
double sum (0);
for (unsigned i=0; i<3; ++i)
{
vec[i] = (double)rand()-(RAND_MAX/2.0);
vec[i] = static_cast<double>(rand())-(RAND_MAX/2.0);
sum+=(vec[i]*vec[i]);
}
double const fac (_radius/sqrt(sum));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment