inpgmod.c: correct the range check to prevent overlap

This commit is contained in:
dwarning 2012-07-28 13:44:33 +02:00
parent fd85e8fd42
commit 3c3ba4c731
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ is_equal( double result, double expectedResult )
static bool
in_range( double value, double min, double max )
{
if ( (is_equal( value, min ) == TRUE) || (is_equal( value, max ) == TRUE) ||
if ( (is_equal( value, min ) == TRUE) || /* the standard binning rule is: min <= value < max */
(min < value && value < max) ) return TRUE;
else return FALSE;
}