aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/numbertheory/monty_exp.cpp2
-rw-r--r--src/lib/math/numbertheory/nistp_redc.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/math/numbertheory/monty_exp.cpp b/src/lib/math/numbertheory/monty_exp.cpp
index 6f70ef7c6..18fb6d081 100644
--- a/src/lib/math/numbertheory/monty_exp.cpp
+++ b/src/lib/math/numbertheory/monty_exp.cpp
@@ -42,7 +42,7 @@ Montgomery_Exponentation_State::Montgomery_Exponentation_State(std::shared_ptr<c
m_g.reserve(window_size);
- m_g.push_back(Montgomery_Int(m_params, m_params->R1(), false));;
+ m_g.push_back(Montgomery_Int(m_params, m_params->R1(), false));
m_g.push_back(Montgomery_Int(m_params, g));
diff --git a/src/lib/math/numbertheory/nistp_redc.cpp b/src/lib/math/numbertheory/nistp_redc.cpp
index 36135f891..f2782038b 100644
--- a/src/lib/math/numbertheory/nistp_redc.cpp
+++ b/src/lib/math/numbertheory/nistp_redc.cpp
@@ -70,7 +70,7 @@ void redc_p521(BigInt& x, secure_vector<word>& ws)
* Otherwise we must reduce if p is exactly 2^512-1
*/
- word possibly_521 = MP_WORD_MAX;;
+ word possibly_521 = MP_WORD_MAX;
for(size_t i = 0; i != p_full_words; ++i)
possibly_521 &= x.word_at(i);