Add missing != operator to nuint_t

This commit is contained in:
Jason Rhinelander 2022-09-14 19:40:54 -03:00
parent 613459401d
commit d1e997177d
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
2 changed files with 7 additions and 1 deletions

View File

@ -168,6 +168,12 @@ namespace llarp
return n < x.n;
}
constexpr bool
operator!=(nuint_t x) const
{
return n != x.n;
}
constexpr bool
operator==(nuint_t x) const
{

View File

@ -157,7 +157,7 @@ namespace llarp
}
// update current gateway and apply state chnages as needed
if (not(m_CurrentGateway == next_gw))
if (m_CurrentGateway != next_gw)
{
if (next_gw and m_CurrentGateway)
{