diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-11 14:31:34 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-11 14:31:34 +0000 |
commit | 199a4ceb7f976c66d9aa99f3d8f960af992d9567 (patch) | |
tree | faf93fe88eba7ac7284610c035593ffb19287004 /src/util/Misc.c | |
parent | 14e87a9a555e3c3ce120b5bbd8be06f45f842b72 (diff) |
Use HUGE_VAL instead of FLT_MAX for the maximum possible value for doubles.
This closes Cactus/966.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2706 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/Misc.c')
-rw-r--r-- | src/util/Misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/Misc.c b/src/util/Misc.c index 08e48008..63da45ad 100644 --- a/src/util/Misc.c +++ b/src/util/Misc.c @@ -535,7 +535,7 @@ int Util_DoubleInRange(double inval, const char *range) else { /* No start range given, so use the smallest float available. */ - start = -FLT_MAX; + start = -HUGE_VAL; } /* Next find the end of the range */ @@ -548,7 +548,7 @@ int Util_DoubleInRange(double inval, const char *range) else { /* No end range given, so use the largest float available. */ - end = FLT_MAX; + end = HUGE_VAL; } #if 0 |