From: ageay Date: Mon, 16 Jul 2012 10:18:40 +0000 (+0000) Subject: Bug correction #2 in MEDPartitionner during Load process of 550^3 cells. X-Git-Tag: V6_main_FINAL~584 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cef6116c500269a547fe73ff2fe3615a5fb7477b;p=tools%2Fmedcoupling.git Bug correction #2 in MEDPartitionner during Load process of 550^3 cells. --- diff --git a/src/MEDLoader/MEDFileMeshElt.cxx b/src/MEDLoader/MEDFileMeshElt.cxx index 456397918..6a04fb2d2 100644 --- a/src/MEDLoader/MEDFileMeshElt.cxx +++ b/src/MEDLoader/MEDFileMeshElt.cxx @@ -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 noms=new char[MED_SNAME_SIZE*curNbOfElem+1]; + INTERP_KERNEL::AutoPtr 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) {