From 409bc12b7351419eb797f04c88e1619d16db39d7 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 1 Mar 2010 11:07:20 +0000
Subject: [PATCH] fix msvc compile

---
 Geo/MTriangle.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Geo/MTriangle.cpp b/Geo/MTriangle.cpp
index 34160161b4..c2c168cce1 100644
--- a/Geo/MTriangle.cpp
+++ b/Geo/MTriangle.cpp
@@ -38,10 +38,9 @@ double MTriangle::getInnerRadius()
 {
 #if defined(HAVE_MESH)
   double r = 0.;
-  const int n = getNumEdges();
-  double dist[n];
+  double dist[3];
   double k = 0.;
-  for (int i = 0; i < n; i++){
+  for (int i = 0; i < 3; i++){
     MEdge e = getEdge(i);
     dist[i] = e.getVertex(0)->distance(e.getVertex(1));
     k += 0.5 * dist[i];
-- 
GitLab