inpgmod.c: correct the range check to prevent overlap
This commit is contained in:
parent
fd85e8fd42
commit
3c3ba4c731
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue