mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[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:
parent
eb4f977ed9
commit
d0c6b024e1
@ -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
|
||||
{
|
||||
return makeQword() < rhs.makeQword();
|
||||
}
|
||||
|
||||
private:
|
||||
LONG64 makeQword() const {
|
||||
return
|
||||
m_timeDataStamp < rhs.m_timeDataStamp &&
|
||||
m_checkSumm < rhs.m_checkSumm;
|
||||
static_cast<LONG64>(m_timeDataStamp) |
|
||||
(static_cast<LONG64>(m_checkSumm) << 32);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user