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;