mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-20 19:57:12 +01:00
Fix the inequality operator from the Slot class. Remove unnecessary implementation of other comparison operators from the slot class.
This commit is contained in:
parent
743ceec248
commit
a3594145ad
@ -231,39 +231,7 @@ private:
|
||||
*/
|
||||
bool operator != (const Slot & o) const
|
||||
{
|
||||
return (mEnvHash != o.mEnvHash) && (mFuncHash != o.mFuncHash);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------
|
||||
* Less than comparison operator.
|
||||
*/
|
||||
bool operator < (const Slot & o) const
|
||||
{
|
||||
return (mEnvHash < o.mEnvHash) && (mFuncHash < o.mFuncHash);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------
|
||||
* Greater than comparison operator.
|
||||
*/
|
||||
bool operator > (const Slot & o) const
|
||||
{
|
||||
return (mEnvHash > o.mEnvHash) && (mFuncHash > o.mFuncHash);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------
|
||||
* Less than or equal comparison operator.
|
||||
*/
|
||||
bool operator <= (const Slot & o) const
|
||||
{
|
||||
return (mEnvHash <= o.mEnvHash) && (mFuncHash <= o.mFuncHash);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------
|
||||
* Greater than or equal comparison operator.
|
||||
*/
|
||||
bool operator >= (const Slot & o) const
|
||||
{
|
||||
return (mEnvHash >= o.mEnvHash) && (mFuncHash >= o.mFuncHash);
|
||||
return (mEnvHash != o.mEnvHash) || (mFuncHash != o.mFuncHash);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user