fixup! Address AI review feedback: tautological assert, typo in comment

This commit is contained in:
Ed Hennis
2026-07-13 20:11:50 -04:00
parent 7b2a91f5aa
commit 59f348727f

View File

@@ -449,8 +449,7 @@ Number::Guard::pushOverflow(T mantissa)
// * For round toward zero, always rounds down to kMaxRep.
auto const diff = mantissa - kMaxRep;
auto const digit = (diff * 10) / spread;
static_assert(std::unsigned_integral<decltype(digit)>);
unsigned const digit = (diff * 10) / spread;
XRPL_ASSERT(
digit < 10 && digit != 5, "xrpl::Number::Guard::pushOverflow : valid overflow digit");