From: eap Date: Tue, 19 Nov 2013 11:54:02 +0000 (+0000) Subject: avoid FPE X-Git-Tag: V7_3_0a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01fd947027ecfd47bc44fa32b20414537de50c2a;p=modules%2Fsmesh.git avoid FPE --- diff --git a/src/StdMeshers/StdMeshers_Adaptive1D.cxx b/src/StdMeshers/StdMeshers_Adaptive1D.cxx index b94b67ce9..dca26df0c 100644 --- a/src/StdMeshers/StdMeshers_Adaptive1D.cxx +++ b/src/StdMeshers/StdMeshers_Adaptive1D.cxx @@ -399,6 +399,8 @@ namespace // internal utils if ( !isDone[ jLongest ] || !isConstSize ) { //++nbLinks; + if ( size < numeric_limits::min() ) + continue; int nb = Max( 1, int( maxLinkLen / size / 2 )); for ( int k = 0; k <= nb; ++k ) {