From: rnv Date: Thu, 11 Nov 2021 13:47:22 +0000 (+0300) Subject: Tests under Windows in Debug mode. X-Git-Tag: V9_8_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6fe1c835418f5dd05128f949fce2ad058a8f415;p=modules%2Fsmesh.git Tests under Windows in Debug mode. --- diff --git a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx index dc82aa09a..62c3abba0 100644 --- a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx +++ b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx @@ -4458,7 +4458,7 @@ namespace // connect pn2 (probably new, at _eIntNodes) with a split - int i, iConn; + int i, iConn = 0; size_t nbCommon; TGeomID commonFaces[20]; _Node* nPrev = nullptr; diff --git a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx index 48b07193e..0222fa7e2 100644 --- a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx +++ b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx @@ -637,7 +637,11 @@ bool StdMeshers_MEFISTO_2D::LoadPoints(TWireVector & wires, m++; } - int mFirst = mOnVertex.front(), mLast = m - 1; + int mFirst = 0, mLast = 0; + if (!mOnVertex.empty()) { + mFirst = mOnVertex.front(); + mLast = m - 1; + } list< int >::iterator mIt = mOnVertex.begin(); for ( ; mIt != mOnVertex.end(); ++mIt) {