diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-11 14:43:06 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-11 14:43:06 +0000 |
commit | 2d1e7dd5701edc248bd2c7efcc9ebc84b8dff1c7 (patch) | |
tree | c5d5a2879714d636db7006e10832c94b50c7f01d | |
parent | 199a4ceb7f976c66d9aa99f3d8f960af992d9567 (diff) |
Replaced HUGE_VAL by DBL_MAX which should be used as the maximum floating-point
number.
Thanks to Jonathan to point this out.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2707 17b73243-c579-4c4c-a9d2-2d5706c11dac
-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 63da45ad..c534d7cc 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 = -HUGE_VAL; + start = -DBL_MAX; } /* 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 = HUGE_VAL; + end = DBL_MAX; } #if 0 |