mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 09:17:57 +00:00
Remove redunant check.
This commit is contained in:
@@ -968,10 +968,6 @@ STAmount STAmount::multiply(const STAmount& v1, const STAmount& v2, const uint16
|
|||||||
--offset2;
|
--offset2;
|
||||||
}
|
}
|
||||||
|
|
||||||
int finOffset = offset1 + offset2;
|
|
||||||
if ((finOffset > 80) || (finOffset < -96))
|
|
||||||
throw std::runtime_error("multiplication produces out of range result");
|
|
||||||
|
|
||||||
// Compute (numerator*10 * denominator*10) / 10^18 with rounding
|
// Compute (numerator*10 * denominator*10) / 10^18 with rounding
|
||||||
CBigNum v;
|
CBigNum v;
|
||||||
if ((BN_add_word(&v, value1) != 1) ||
|
if ((BN_add_word(&v, value1) != 1) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user