mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
minor changes
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
@@ -52,15 +52,7 @@ IOUAmount::normalize()
|
||||
}
|
||||
|
||||
Number const v{mantissa_, exponent_};
|
||||
*this = fromNumber(v);
|
||||
if (exponent_ > kMaxExponent)
|
||||
{
|
||||
Throw<std::overflow_error>("value overflow");
|
||||
}
|
||||
if (exponent_ < kMinExponent)
|
||||
{
|
||||
*this = beast::kZero;
|
||||
}
|
||||
*this = IOUAmount(v);
|
||||
}
|
||||
|
||||
IOUAmount::IOUAmount(Number const& other) : IOUAmount(fromNumber(other))
|
||||
|
||||
Reference in New Issue
Block a user