summaryrefslogtreecommitdiff
path: root/src/util/Misc.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-03 09:44:32 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-03 09:44:32 +0000
commit074269490ff0f3f4423a7429d4e2492a5acac2c5 (patch)
tree41b78ec53f09f2912e26ad636d67d1069b412c41 /src/util/Misc.c
parente9e597a5cb2074fc20dc19eb6fe21b159fb3d10b (diff)
Fixed a cut'n'paste bug.
Added <float.h> 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
Diffstat (limited to 'src/util/Misc.c')
-rw-r--r--src/util/Misc.c7
1 files changed, 4 insertions, 3 deletions
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 <assert.h>
#include <limits.h>
#include <math.h>
+#include <float.h>
#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;
}