From 074269490ff0f3f4423a7429d4e2492a5acac2c5 Mon Sep 17 00:00:00 2001 From: goodale Date: Fri, 3 Sep 1999 09:44:32 +0000 Subject: Fixed a cut'n'paste bug. Added to make sure the definitions of FLT_MAX and _MIN are included, this should help the build on NT. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@866 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/util/Misc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/util/Misc.c') diff --git a/src/util/Misc.c b/src/util/Misc.c index 0a2e34fa..d4ecc381 100644 --- a/src/util/Misc.c +++ b/src/util/Misc.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "gnu_regex.h" @@ -431,8 +432,8 @@ int Util_DoubleInRange(double inval, const char *range) } else { - /* No start range given, so use the smallest integer available. */ - start = INT_MIN; + /* No start range given, so use the smallest float available. */ + start = FLT_MIN; } /* Next find the end of the range */ @@ -444,7 +445,7 @@ int Util_DoubleInRange(double inval, const char *range) } else { - /* No end range given, so use the largest integer available. */ + /* No end range given, so use the largest float available. */ end = FLT_MAX; } -- cgit v1.2.3