Skip to content

Commit

Permalink
Fix code scanning alert no. 11: Multiplication result converted to la…
Browse files Browse the repository at this point in the history
…rger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent d9343a8 commit 725c46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/muhash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 725c46a

Please sign in to comment.