]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
MEDFileMeshL2: bug fix, and warning removal for FD24.
authorabn <adrien.bruneton@cea.fr>
Mon, 4 Jul 2016 07:35:52 +0000 (09:35 +0200)
committerabn <adrien.bruneton@cea.fr>
Mon, 4 Jul 2016 07:35:52 +0000 (09:35 +0200)
src/MEDLoader/MEDFileMeshLL.cxx

index 33b1ae82cd978d71b124e8862619251a69e50e61..0a34f8ad7ac8448de1da9defc33cddb5ba7fa0b9 100644 (file)
@@ -137,8 +137,9 @@ double MEDFileMeshL2::CheckMeshTimeStep(med_idt fid, const std::string& mName, i
   for(int i=0;i<nstep;i++)
     {
       MEDFILESAFECALLERRD0(MEDmeshComputationStepInfo,(fid,mName.c_str(),i+1,&numdt,&numit,&dtt));
-      p[i]=std::make_pair(numdt,numit);
-      found=(numdt==dt) && (numit==numit);
+      p[i]=std::make_pair((int)numdt,(int)numit);
+      found=(numdt==dt) && (numit==it);
+      if (found) break;
     }
   if(!found)
     {