mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 21:56:13 +00:00
Fixed self-comparsion in ps.
This commit is contained in:
parent
fc569e415b
commit
baeae9e777
1 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ inline uint32 CPSAttribMakerBinOp<uint32>::getMinValue(void) const
|
||||||
{
|
{
|
||||||
uint32 lhs = _Arg[0]->getMinValue();
|
uint32 lhs = _Arg[0]->getMinValue();
|
||||||
uint32 rhs = _Arg[1]->getMaxValue();
|
uint32 rhs = _Arg[1]->getMaxValue();
|
||||||
return rhs > rhs ? 0 : lhs - rhs;
|
return lhs > rhs ? 0 : lhs - rhs;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -153,7 +153,7 @@ inline uint32 CPSAttribMakerBinOp<uint32>::getMaxValue(void) const
|
||||||
{
|
{
|
||||||
uint32 lhs = _Arg[0]->getMaxValue();
|
uint32 lhs = _Arg[0]->getMaxValue();
|
||||||
uint32 rhs = _Arg[1]->getMinValue();
|
uint32 rhs = _Arg[1]->getMinValue();
|
||||||
return rhs > rhs ? 0 : lhs - rhs;
|
return lhs > rhs ? 0 : lhs - rhs;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue