mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 16:10:57 +00:00
Apply suggestions from AI code review: typos
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -449,7 +449,7 @@ Number::Guard::pushOverflow(T mantissa)
|
||||
return;
|
||||
}
|
||||
|
||||
// The second step scales the final digit of the update mantissa proportionally, converting
|
||||
// The second step scales the final digit of the updated mantissa proportionally, converting
|
||||
// from (kMaxRep, kMaxRepUp) to (0 to 9]. It then pushes that scaled digit onto the guard as
|
||||
// if it was a digit that got removed, but doesn't actually remove it. This method should be
|
||||
// future-proof in case the number of mantissa bits ever changes. (Though for integer values
|
||||
|
||||
@@ -1531,7 +1531,7 @@ public:
|
||||
{
|
||||
case MantissaRange::MantissaScale::Large330:
|
||||
// Rounding to nearest, since the mantissa is below the halfway point from
|
||||
// kMaxRep to kMaxRep up, it will be rounded down to kMaxRep
|
||||
// kMaxRep to kMaxRepUp, it will be rounded down to kMaxRep
|
||||
test(
|
||||
Number{std::numeric_limits<std::int64_t>::max(), 0} + 1,
|
||||
"9223372036854775807",
|
||||
|
||||
Reference in New Issue
Block a user