1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 06:52:33 -05:00

Fix clang warnings and job comparison bug.

This commit is contained in:
XMRig
2017-10-07 18:58:04 +03:00
parent 7d4bdfc913
commit f02b98efe7
3 changed files with 2 additions and 3 deletions

View File

@@ -57,7 +57,6 @@ private:
double m_highestHashrate;
double m_totalHashrate[3];
int m_threads;
mutable char m_buf[4096];
NetworkState m_network;
};

View File

@@ -171,5 +171,5 @@ void Job::toHex(const unsigned char* in, unsigned int len, char* out)
bool Job::operator==(const Job &other) const
{
return m_id == other.m_id && memcmp(m_blob, other.m_blob, sizeof(m_blob) == 0);
return m_id == other.m_id && memcmp(m_blob, other.m_blob, sizeof(m_blob)) == 0;
}