pull/66/head
Jeff Becker 6 years ago
parent 937ab151ab
commit 9d551ba768
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -69,7 +69,7 @@ namespace llarp
bool
operator==(const AlignedBuffer& other) const
{
return memcmp(data(), other.data(), sz) == 0;
return memcmp(b, other.b, sz) == 0;
}
bool
@ -221,7 +221,7 @@ namespace llarp
struct Hash
{
size_t
operator()(const AlignedBuffer& buf) const
operator()(const AlignedBuffer< sz, randomize, Long_t >& buf) const
{
return buf.l[0];
}

@ -102,7 +102,7 @@ namespace llarp
bool
ExitEndpoint::HasLocalMappedAddrFor(const llarp::PubKey &pk) const
{
return m_KeyToIP.find(pk) != m_KeyToIP.end();
return m_KeyToIP.count(pk) > 0;
}
huint32_t
@ -150,8 +150,8 @@ namespace llarp
{
if(itr->second < min)
{
found = itr->first;
min = itr->second;
found.h = itr->first.h;
min = itr->second;
}
++itr;
}

Loading…
Cancel
Save