From 12aab0f4ef911d8ffb995d5c5ff9fc351711d2a4 Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sun, 20 Nov 2016 12:29:01 +1100 Subject: [PATCH] Fixed build warnings on MSVC14 x64 in the O3DGC sources. --- contrib/Open3DGC/o3dgcCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/Open3DGC/o3dgcCommon.h b/contrib/Open3DGC/o3dgcCommon.h index 13af4153d..ff6bf7558 100644 --- a/contrib/Open3DGC/o3dgcCommon.h +++ b/contrib/Open3DGC/o3dgcCommon.h @@ -383,7 +383,7 @@ namespace o3dgc r = (maxTab[d] - minTab[d]); diag += r*r; } - diag = sqrt(diag); + diag = static_cast(sqrt(diag)); for(unsigned long d = 0; d < dim; ++d) { maxTab[d] = minTab[d] + diag;