mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 16:10:57 +00:00
fixup! Address AI review feedback: tautological assert, typo in comment
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user