Browse Source

Fixed build warnings on MSVC14 x64 in the O3DGC sources.

Jared Mulconry 8 years ago
parent
commit
12aab0f4ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/Open3DGC/o3dgcCommon.h

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