From df4287c3c763de14b262ed39d54b3de552adbefb Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 31 Aug 2017 07:13:58 -0400 Subject: Fix various MSVC warnings Based on VC2017 output --- src/lib/pubkey/mce/gf2m_small_m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pubkey/mce/gf2m_small_m.h') 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(((d) & gf_ord()) + ((d) >> get_extension_degree())); } gf2m m_gf_extension_degree, m_gf_multiplicative_order; -- cgit v1.2.3