From 01fd947027ecfd47bc44fa32b20414537de50c2a Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 19 Nov 2013 11:54:02 +0000 Subject: [PATCH] avoid FPE --- src/StdMeshers/StdMeshers_Adaptive1D.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ) { -- 2.39.2