ExprEngine; Fix fp in edgevalue
This commit is contained in:
parent
c79ec9e956
commit
446e7c3c0e
|
@ -740,7 +740,7 @@ bool ExprEngine::IntRange::isEqual(DataBase *dataBase, int value) const
|
||||||
|
|
||||||
bool ExprEngine::IntRange::isGreaterThan(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;
|
return false;
|
||||||
|
|
||||||
const Data *data = dynamic_cast<Data *>(dataBase);
|
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
|
bool ExprEngine::IntRange::isLessThan(DataBase *dataBase, int value) const
|
||||||
{
|
{
|
||||||
if (value < minValue || value > maxValue)
|
if (value <= minValue || value >= maxValue)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const Data *data = dynamic_cast<Data *>(dataBase);
|
const Data *data = dynamic_cast<Data *>(dataBase);
|
||||||
|
|
Loading…
Reference in New Issue