]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
avoid FPE
authoreap <eap@opencascade.com>
Tue, 19 Nov 2013 11:54:02 +0000 (11:54 +0000)
committereap <eap@opencascade.com>
Tue, 19 Nov 2013 11:54:02 +0000 (11:54 +0000)
src/StdMeshers/StdMeshers_Adaptive1D.cxx

index b94b67ce9147ad164f3738e86042eacc3ccae9a1..dca26df0c847cfbe3a0467656c1c32ae4a56bc73 100644 (file)
@@ -399,6 +399,8 @@ namespace // internal utils
       if ( !isDone[ jLongest ] || !isConstSize )
       {
         //++nbLinks;
+        if ( size < numeric_limits<double>::min() )
+          continue;
         int nb = Max( 1, int( maxLinkLen / size / 2 ));
         for ( int k = 0; k <= nb; ++k )
         {