diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:57:24 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:57:24 -0600 |
commit | ad843541d526ef9216f5cfbfd7c18f859964c4d2 (patch) | |
tree | 47faf3c3142a744ebf42cdf5119bad0700b24963 /src/rpc | |
parent | Merge pull request #6999 (diff) | |
parent | Silence stupid warnings (diff) | |
download | monero-ad843541d526ef9216f5cfbfd7c18f859964c4d2.tar.xz |
Merge pull request #7008
3247f11 Silence stupid warnings (Howard Chu)
Diffstat (limited to 'src/rpc')
-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) { |