From 3c3ba4c731fbdd4578942f802a845907294739f0 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 28 Jul 2012 13:44:33 +0200 Subject: [PATCH] inpgmod.c: correct the range check to prevent overlap --- src/spicelib/parser/inpgmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index 5a3fb53ec..e850dafec 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/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; }