From d1e997177df06f1c5c5400a300abb96b2a6d4ae8 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Wed, 14 Sep 2022 19:40:54 -0300 Subject: [PATCH] Add missing != operator to nuint_t --- llarp/net/net_int.hpp | 6 ++++++ llarp/router/route_poker.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/llarp/net/net_int.hpp b/llarp/net/net_int.hpp index 1fd263c7f..d9894024d 100644 --- a/llarp/net/net_int.hpp +++ b/llarp/net/net_int.hpp @@ -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 { diff --git a/llarp/router/route_poker.cpp b/llarp/router/route_poker.cpp index af91c90e5..df29a36b0 100644 --- a/llarp/router/route_poker.cpp +++ b/llarp/router/route_poker.cpp @@ -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) {