[0.1.x] ~fix: compare module ID

git-svn-id: https://pykd.svn.codeplex.com/svn@73057 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-01-10 14:00:51 +00:00 committed by Mikhail I. Izmestev
parent eb4f977ed9
commit d0c6b024e1

View File

@ -81,17 +81,16 @@ public:
{ {
} }
bool operator == (const ModuleId &rhs) const
{
return
m_timeDataStamp == rhs.m_timeDataStamp &&
m_checkSumm == rhs.m_checkSumm;
}
bool operator < (const ModuleId &rhs) const bool operator < (const ModuleId &rhs) const
{ {
return makeQword() < rhs.makeQword();
}
private:
LONG64 makeQword() const {
return return
m_timeDataStamp < rhs.m_timeDataStamp && static_cast<LONG64>(m_timeDataStamp) |
m_checkSumm < rhs.m_checkSumm; (static_cast<LONG64>(m_checkSumm) << 32);
} }
}; };