aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mce
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-04 09:35:41 -0500
committerJack Lloyd <[email protected]>2018-12-04 09:35:41 -0500
commit4e16f683d7fd3a2ab0553c9423fc725798cd899f (patch)
tree208f30df5b1922442e2804c5c9299659bc99c77a /src/lib/pubkey/mce
parent50de06c585609d969da5b9ab5812e62328bacaee (diff)
Silence MSVC warnings
static_casts for the compiler god
Diffstat (limited to 'src/lib/pubkey/mce')
-rw-r--r--src/lib/pubkey/mce/code_based_key_gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/code_based_key_gen.cpp b/src/lib/pubkey/mce/code_based_key_gen.cpp
index b655b543b..7ddc45655 100644
--- a/src/lib/pubkey/mce/code_based_key_gen.cpp
+++ b/src/lib/pubkey/mce/code_based_key_gen.cpp
@@ -199,7 +199,7 @@ std::unique_ptr<binary_matrix> generate_R(std::vector<gf2m> &L, polyn_gf2m* g, s
}
for (i = 0; i < code_length; ++i)
{
- L[i] = Laux[i];
+ L[i] = static_cast<gf2m>(Laux[i]);
}
return result;
}