1
0
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:
Sandu Liviu Catalin 2016-10-31 17:35:54 +02:00
parent 743ceec248
commit a3594145ad

View File

@ -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);
}
/* ----------------------------------------------------------------------------------------