aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/curve25519/donna.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/curve25519/donna.cpp b/src/lib/pubkey/curve25519/donna.cpp
index 83d68ff6b..4fab78cb8 100644
--- a/src/lib/pubkey/curve25519/donna.cpp
+++ b/src/lib/pubkey/curve25519/donna.cpp
@@ -322,7 +322,7 @@ fmonty(limb *x2, limb *z2, /* output 2Q */
static void
swap_conditional(limb a[5], limb b[5], limb iswap) {
unsigned i;
- const limb swap = -iswap;
+ const limb swap = static_cast<limb>(-iswap);
for (i = 0; i < 5; ++i) {
const limb x = swap & (a[i] ^ b[i]);