From a9cd3d8776b7f000c4a204b089dbeae6ca3bc751 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 15 Oct 2010 11:10:19 +0000
Subject: [PATCH]

---
 Plugin/Distance.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Plugin/Distance.cpp b/Plugin/Distance.cpp
index acee72c852..b5ca5f0125 100644
--- a/Plugin/Distance.cpp
+++ b/Plugin/Distance.cpp
@@ -476,7 +476,7 @@ PView *GMSH_DistancePlugin::execute(PView *v)
           inYarn.push_back(it->second);
         }
         fprintf(f4,"){");
-        for (int i=0; i<inYarn.size(); i++){
+        for (unsigned int i=0; i<inYarn.size(); i++){
           if (i) fprintf(f4,",%d", inYarn[i]);
           else fprintf(f4,"%d", inYarn[i]);
         }
@@ -502,7 +502,7 @@ PView *GMSH_DistancePlugin::execute(PView *v)
       int gDim = ge->dim();
       bool fixForEntity = false;
       std::vector<int> phys = ge->getPhysicalEntities();
-      for(int k = 0; k< phys.size(); k++){
+      for(unsigned int k = 0; k< phys.size(); k++){
 	int tagp = phys[k];
 	if (id_pt==0 && id_line==0 && id_face==0 && gDim==_maxDim-1 )
 	  fixForEntity = true;
-- 
GitLab