Fixed build warnings on MSVC14 x64 in the O3DGC sources.
authorJared Mulconry <j.mulconry@atomizergames.com>
Sun, 20 Nov 2016 01:29:01 +0000 (12:29 +1100)
committerJared Mulconry <j.mulconry@atomizergames.com>
Sun, 20 Nov 2016 01:29:01 +0000 (12:29 +1100)
contrib/Open3DGC/o3dgcCommon.h

index 13af415..ff6bf75 100644 (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;