aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mce/gf2m_small_m.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/mce/gf2m_small_m.h')
-rw-r--r--src/lib/pubkey/mce/gf2m_small_m.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/gf2m_small_m.h b/src/lib/pubkey/mce/gf2m_small_m.h
index d49325def..d8c5f5b8f 100644
--- a/src/lib/pubkey/mce/gf2m_small_m.h
+++ b/src/lib/pubkey/mce/gf2m_small_m.h
@@ -203,7 +203,7 @@ class BOTAN_DLL GF2m_Field
when 0 <= d < q, we get (d)
when q <= d < 2q-1, we get (d-q+1)
*/
- return (((d) & gf_ord()) + ((d) >> get_extension_degree()));
+ return static_cast<gf2m>(((d) & gf_ord()) + ((d) >> get_extension_degree()));
}
gf2m m_gf_extension_degree, m_gf_multiplicative_order;