diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/Misc.c b/src/util/Misc.c index 37c7ba2f..96b9dd0b 100644 --- a/src/util/Misc.c +++ b/src/util/Misc.c @@ -467,8 +467,8 @@ int Util_IntInRange(int inval, const char *range) } else { - /* End range not given, so interval has length zero. */ - end = start; + /* End range not given, so interval has either zero or infinite length. */ + end = start == INT_MIN ? INT_MAX : start; } /* Next find whether step of the range is present */ @@ -669,8 +669,8 @@ int Util_DoubleInRange(double inval, const char *range) } else { - /* End range not given, so interval has length zero. */ - end = start; + /* End range not given, so interval has either zero or infinite length. */ + end = start == -HUGE_VAL ? HUGE_VAL : start; } /* Next find whether step of the range is present */ |