From 40441de81ffa8b12190192be232fa58fab33c30f Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 10 Oct 2006 11:09:16 +0000 Subject: [PATCH] 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 --- deal.II/base/source/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5