Fixed build warnings on MSVC14 x64 in the O3DGC sources.

pull/1083/head
Jared Mulconry 2016-11-20 12:29:01 +11:00
parent 8478b03f22
commit 12aab0f4ef
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ namespace o3dgc
r = (maxTab[d] - minTab[d]);
diag += r*r;
}
diag = sqrt(diag);
diag = static_cast<Real>(sqrt(diag));
for(unsigned long d = 0; d < dim; ++d)
{
maxTab[d] = minTab[d] + diag;