Browse Source

inpgmod.c: correct the range check to prevent overlap

dwarning 14 years ago
parent
commit
3c3ba4c731
  1. 2
      src/spicelib/parser/inpgmod.c

2
src/spicelib/parser/inpgmod.c

@ -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…
Cancel
Save