ExprEngine; Fix fp in edgevalue

This commit is contained in:
Daniel Marjamäki 2020-01-15 17:51:34 +01:00
parent c79ec9e956
commit 446e7c3c0e
1 changed files with 2 additions and 2 deletions

View File

@ -740,7 +740,7 @@ bool ExprEngine::IntRange::isEqual(DataBase *dataBase, int value) const
bool ExprEngine::IntRange::isGreaterThan(DataBase *dataBase, int value) const
{
if (value < minValue || value > maxValue)
if (value <= minValue || value >= maxValue)
return false;
const Data *data = dynamic_cast<Data *>(dataBase);
@ -769,7 +769,7 @@ bool ExprEngine::IntRange::isGreaterThan(DataBase *dataBase, int value) const
bool ExprEngine::IntRange::isLessThan(DataBase *dataBase, int value) const
{
if (value < minValue || value > maxValue)
if (value <= minValue || value >= maxValue)
return false;
const Data *data = dynamic_cast<Data *>(dataBase);