From 8a2a9a99a9be7f936fd057e50fd38747706b3ab2 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:00:55 +0100 Subject: [PATCH] Fixed cppcheck error --- src/block_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block_template.cpp b/src/block_template.cpp index 28d9b0f..235fb7e 100644 --- a/src/block_template.cpp +++ b/src/block_template.cpp @@ -283,7 +283,7 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, const if (shares) { const MinerShare* src = &s[0]; std::pair* dst = shares; - std::pair* e = shares + N; + const std::pair* e = shares + N; for (; dst < e; ++src, ++dst) { const Wallet* w = src->m_wallet;