aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/mp_numth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/numbertheory/mp_numth.cpp')
-rw-r--r--src/math/numbertheory/mp_numth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/numbertheory/mp_numth.cpp b/src/math/numbertheory/mp_numth.cpp
index 03eb8d9db..4edc694e5 100644
--- a/src/math/numbertheory/mp_numth.cpp
+++ b/src/math/numbertheory/mp_numth.cpp
@@ -19,7 +19,7 @@ BigInt square(const BigInt& x)
{
const u32bit x_sw = x.sig_words();
- BigInt z(BigInt::Positive, round_up(2*x_sw, 16));
+ BigInt z(BigInt::Positive, round_up<u32bit>(2*x_sw, 16));
SecureVector<word> workspace(z.size());
bigint_sqr(z.get_reg(), z.size(), workspace,