From: hartmann Date: Tue, 10 Oct 2006 11:09:16 +0000 (+0000) Subject: Bug fix: As min=2.22507e-308 and max=1.79769e+308 we should allow -max<=x<=max instea... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40441de81ffa8b12190192be232fa58fab33c30f;p=dealii-svn.git Bug fix: As min=2.22507e-308 and max=1.79769e+308 we should allow -max<=x<=max instead of only min<=x<=max. git-svn-id: https://svn.dealii.org/trunk@13988 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/config.cc b/deal.II/base/source/config.cc index 4d8ec7b70e..cfce328699 100644 --- a/deal.II/base/source/config.cc +++ b/deal.II/base/source/config.cc @@ -27,7 +27,7 @@ namespace deal_II_numbers // check against infinities. not // that if x is a NaN, then both // comparisons will be false - return ((x >= std::numeric_limits::min()) + return ((x >= -std::numeric_limits::max()) && (x <= std::numeric_limits::max())); #endif