From 15e471e04cbf6eb06803b244dea2d61ce2386af9 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 1 Mar 2010 11:55:18 +0000 Subject: [PATCH] fix msvc compile --- Numeric/DivideAndConquer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Numeric/DivideAndConquer.cpp b/Numeric/DivideAndConquer.cpp index f3d44d3e3e..ae5f1dd217 100644 --- a/Numeric/DivideAndConquer.cpp +++ b/Numeric/DivideAndConquer.cpp @@ -651,10 +651,10 @@ void centroidOfPolygon(SPoint2 &pc, std::vector<SPoint2> &pts, yc = x.y(); } -double DocRecord::Lloyd(int type) +double DocRecord::Lloyd(int type) { fullMatrix<double> cgs(numPoints,2); - double inertia_tot; + double inertia_tot = 0.; for(PointNumero i = 0; i < numPoints; i++) { PointRecord &pt = points[i]; std::vector<SPoint2> pts; -- GitLab