Fix assertion typo src/libxrpl/basics/Number.cpp

Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
This commit is contained in:
Ed Hennis
2026-06-12 19:44:08 -04:00
committed by GitHub
parent a63bab2a5e
commit 22a7f5bb49

View File

@@ -446,7 +446,7 @@ Number::Guard::pushOverflow(T const& mantissa)
auto const diff = mantissa - kMaxRep;
auto const digit = (diff * 10) / spread;
XRPL_ASSERT(
digit > 0 && digit < 10, "xrpld::Number::Guard::pushOverflow : valid overflow digit");
digit > 0 && digit < 10, "xrpl::Number::Guard::pushOverflow : valid overflow digit");
// Don't remove the digit from the mantissa, but add it to the guard as if it was.
push(digit);