aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/math/bigint/big_code.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/bigint/big_code.cpp b/src/lib/math/bigint/big_code.cpp
index c31221333..a4bd03a04 100644
--- a/src/lib/math/bigint/big_code.cpp
+++ b/src/lib/math/bigint/big_code.cpp
@@ -20,7 +20,7 @@ std::string BigInt::to_dec_string() const
secure_vector<uint8_t> digits;
// (over-)estimate of the number of digits, log2(10) ~= 3.32
- digits.reserve(3.4 * this->bits());
+ digits.reserve(static_cast<size_t>(3.4 * this->bits()));
while(copy > 0)
{