aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/math/numbertheory/pow_mod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/pow_mod.cpp b/src/lib/math/numbertheory/pow_mod.cpp
index 9f7459ac5..e4fed9925 100644
--- a/src/lib/math/numbertheory/pow_mod.cpp
+++ b/src/lib/math/numbertheory/pow_mod.cpp
@@ -64,7 +64,7 @@ void Power_Mod::set_modulus(const BigInt& n, Usage_Hints hints, bool disable_mon
delete m_core;
m_core = nullptr;
- disable_monty =true;
+
if(n != 0)
{
if(n.is_odd() && disable_monty == false)