2
0
Эх сурвалжийг харах

Fixed build warnings on MSVC14 x64 in the O3DGC sources.

Jared Mulconry 8 жил өмнө
parent
commit
12aab0f4ef

+ 1 - 1
contrib/Open3DGC/o3dgcCommon.h

@@ -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;