From 725c46a56b1aac80d40cc789c39faba6449f7dbb Mon Sep 17 00:00:00 2001 From: Wes <93578022+Wbaker7702@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:02:51 -0500 Subject: [PATCH] Fix code scanning alert no. 11: Multiplication result converted to larger type Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/crypto/muhash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/muhash.cpp b/src/crypto/muhash.cpp index 9c35b0689da1b..cb165fc9e19ec 100644 --- a/src/crypto/muhash.cpp +++ b/src/crypto/muhash.cpp @@ -46,7 +46,7 @@ inline void mulnadd3(limb_t& c0, limb_t& c1, limb_t& c2, limb_t& d0, limb_t& d1, t += (double_limb_t)d1 * n + c1; c1 = t; t >>= LIMB_SIZE; - c2 = t + d2 * n; + c2 = t + (double_limb_t)d2 * n; } /* [c0,c1] *= n */