Fix compilation error.

This commit is contained in:
Daniel Kirchner
2022-06-15 11:14:50 +02:00
parent b45bc3918f
commit 53c4facf4e
7 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ bool fitsPrecisionExp(bigint const& _base, bigint const& _exp)
size_t const bitsMax = 4096;
unsigned mostSignificantBaseBit = boost::multiprecision::msb(_base);
size_t mostSignificantBaseBit = static_cast<size_t>(boost::multiprecision::msb(_base));
if (mostSignificantBaseBit == 0) // _base == 1
return true;
if (mostSignificantBaseBit > bitsMax) // _base >= 2 ^ 4096