aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/powm_fw.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-30 16:45:20 -0400
committerJack Lloyd <[email protected]>2018-09-30 16:45:20 -0400
commit38f053a5f8cb1ca351ba52d76c15491d63fd3eb0 (patch)
tree13c06b095059af302b8e0d9562a4aa7a9a6e73b1 /src/lib/math/numbertheory/powm_fw.cpp
parente9ba0d9cdf0726b357d7aeca14ef43f1d10be1e8 (diff)
Fix some MSVC warnings
Diffstat (limited to 'src/lib/math/numbertheory/powm_fw.cpp')
-rw-r--r--src/lib/math/numbertheory/powm_fw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/powm_fw.cpp b/src/lib/math/numbertheory/powm_fw.cpp
index 85a0364b5..c326ffa44 100644
--- a/src/lib/math/numbertheory/powm_fw.cpp
+++ b/src/lib/math/numbertheory/powm_fw.cpp
@@ -25,7 +25,7 @@ void Fixed_Window_Exponentiator::set_base(const BigInt& base)
{
m_window_bits = Power_Mod::window_bits(m_exp.bits(), base.bits(), m_hints);
- m_g.resize(1U << m_window_bits);
+ m_g.resize(static_cast<size_t>(1) << m_window_bits);
m_g[0] = 1;
m_g[1] = base;