Minor fixes: missing include, variable init, typo

This commit is contained in:
Ed Hennis
2026-05-27 12:09:13 -04:00
parent ae9c72bb7c
commit 4ec049e727
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#include <xrpl/beast/utility/instrumentation.h>
#include <array>
#include <cstdint>
#include <functional>
#include <limits>
@@ -53,7 +54,7 @@ constexpr std::size_t int64digits = 20;
consteval std::array<std::uint64_t, int64digits>
buildPowersOfTen()
{
std::array<std::uint64_t, int64digits> result;
std::array<std::uint64_t, int64digits> result{};
std::uint64_t power = 1;
std::size_t exponent = 0;

View File

@@ -408,7 +408,7 @@ Number::Guard::doRoundUp(
// _don't_ increment the mantissa. Instead, divide and round recursively. It should
// be impossible to recurse more than once, because once the mantissa is divided by
// 10, it will be _well_ under maxMantissa and kMaxRep, so adding 1 will have no
// change of bringing it back over.
// chance of bringing it back over.
doDropDigit(mantissa, exponent);
XRPL_ASSERT_PARTS(
safeToIncrement(mantissa),