diff options
author | Jack Lloyd <[email protected]> | 2018-01-09 10:57:13 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-09 10:57:13 -0500 |
commit | bc36f04d9c536a608eaae68ce13cc84bef350f68 (patch) | |
tree | c8e035fc5b28b2b863c9257f184739a41b360737 /src/lib | |
parent | 9977b326c8440c1e38d759bd7f9713f2501ff4f9 (diff) |
Add contortion to appease Sonar
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/curve25519/donna.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/curve25519/donna.cpp b/src/lib/pubkey/curve25519/donna.cpp index 53ab220bd..6c229dd12 100644 --- a/src/lib/pubkey/curve25519/donna.cpp +++ b/src/lib/pubkey/curve25519/donna.cpp @@ -329,7 +329,7 @@ void fmonty(uint64_t result_two_q_x[5], */ void swap_conditional(uint64_t a[5], uint64_t b[5], uint64_t iswap) { - const uint64_t swap = static_cast<uint64_t>(-iswap); + const uint64_t swap = static_cast<uint64_t>(-static_cast<int64_t>(iswap)); for(size_t i = 0; i < 5; ++i) { |