aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-09 07:47:39 -0400
committerJack Lloyd <[email protected]>2016-10-09 07:47:39 -0400
commit8521658302b5170469339b93f54490a79473a8d0 (patch)
tree1a33c09966a6a60b4f3f0cf57e0042a745f203d3 /src/lib/pubkey
parent27a6d112f00f7bb27aba2049068930735d737737 (diff)
Fix Clang warnings
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/curve25519/donna.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/curve25519/donna.cpp b/src/lib/pubkey/curve25519/donna.cpp
index a0e4d249f..86b92b0bf 100644
--- a/src/lib/pubkey/curve25519/donna.cpp
+++ b/src/lib/pubkey/curve25519/donna.cpp
@@ -374,8 +374,8 @@ cmult(limb *resultx, limb *resultz, const u8 *n, const limb *q) {
swap_conditional(nqx, nqpqx, bit);
swap_conditional(nqz, nqpqz, bit);
- fmonty_out_t result { nqx2, nqz2, nqpqx2, nqpqz2 };
- fmonty_in_t in { nqx, nqz, nqpqx, nqpqz, q };
+ fmonty_out_t result { {nqx2, nqz2}, {nqpqx2, nqpqz2} };
+ fmonty_in_t in { { nqx, nqz }, { nqpqx, nqpqz }, q };
fmonty(result, in);
swap_conditional(nqx2, nqpqx2, bit);
swap_conditional(nqz2, nqpqz2, bit);