diff options
author | Howard Chu <hyc@symas.com> | 2020-11-11 02:34:14 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2020-11-11 02:34:14 +0000 |
commit | 3247f11638a64d00eb6c03e3763e2985c9beef0e (patch) | |
tree | f5c05d0924bc6ef8d94aa8ddef36077d571a272e /src/rpc/zmq_pub.cpp | |
parent | Merge pull request #6927 (diff) | |
download | monero-3247f11638a64d00eb6c03e3763e2985c9beef0e.tar.xz |
Silence stupid warnings
Diffstat (limited to 'src/rpc/zmq_pub.cpp')
-rw-r--r-- | src/rpc/zmq_pub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/zmq_pub.cpp b/src/rpc/zmq_pub.cpp index 0dffffac6..eac530968 100644 --- a/src/rpc/zmq_pub.cpp +++ b/src/rpc/zmq_pub.cpp @@ -221,7 +221,7 @@ namespace void add_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first) { assert(range.size() <= N); - assert(range.begin() - first <= N - range.size()); + assert((unsigned long)(range.begin() - first) <= N - range.size()); for (const auto& ctx : range) { @@ -234,7 +234,7 @@ namespace void remove_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first) { assert(range.size() <= N); - assert(range.begin() - first <= N - range.size()); + assert((unsigned long)(range.begin() - first) <= N - range.size()); for (const auto& ctx : range) { |