aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-01 17:24:08 -0500
committerJack Lloyd <[email protected]>2018-03-01 17:24:08 -0500
commit7801984d217b150c231b9e896179dc4ca729b831 (patch)
tree8f37c69047a3c5663a68a955f8aceea85a707673 /src/lib
parentfb44fe4f9ac094a7f223ef337796c3c4a2ed933f (diff)
Loosen restrictions on using bigint_comba_sqr9
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/math/mp/mp_karat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/mp/mp_karat.cpp b/src/lib/math/mp/mp_karat.cpp
index 6e1414cfa..b10ea6fd9 100644
--- a/src/lib/math/mp/mp_karat.cpp
+++ b/src/lib/math/mp/mp_karat.cpp
@@ -332,7 +332,7 @@ void bigint_sqr(word z[], size_t z_size,
{
bigint_comba_sqr8(z, x);
}
- else if(x_sw == 9 && x_size >= 9 && z_size >= 18)
+ else if(x_sw <= 9 && x_size >= 9 && z_size >= 18)
{
bigint_comba_sqr9(z, x);
}