]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug correction #2 in MEDPartitionner during Load process of 550^3 cells.
authorageay <ageay>
Mon, 16 Jul 2012 10:18:40 +0000 (10:18 +0000)
committerageay <ageay>
Mon, 16 Jul 2012 10:18:40 +0000 (10:18 +0000)
src/MEDLoader/MEDFileMeshElt.cxx

index 456397918b82163416ca447df83bbaf9ff12a931..6a04fb2d2735341c22c8189194bade872908e179 100644 (file)
@@ -98,7 +98,7 @@ void MEDFileUMeshPerType::loadFromStaticType(med_idt fid, const char *mName, int
   _fam=DataArrayInt::New();
   _fam->alloc(curNbOfElem,1);
   med_bool changement,transformation;
-  INTERP_KERNEL::AutoPtr<char> noms=new char[MED_SNAME_SIZE*curNbOfElem+1];
+  INTERP_KERNEL::AutoPtr<char> noms=new char[MED_SNAME_SIZE*(std::size_t)curNbOfElem+1];
   MEDmeshElementConnectivityRd(fid,mName,dt,it,entity,geoElt,MED_NODAL,MED_FULL_INTERLACE,connTab);
   if(MEDmeshnEntity(fid,mName,dt,it,entity,geoElt,MED_FAMILY_NUMBER,MED_NODAL,&changement,&transformation)>0)
     {