diff --git a/include/xrpl/basics/Number.h b/include/xrpl/basics/Number.h index 37899a1cf4..2dfe3a408f 100644 --- a/include/xrpl/basics/Number.h +++ b/include/xrpl/basics/Number.h @@ -2,6 +2,7 @@ #include +#include #include #include #include @@ -53,7 +54,7 @@ constexpr std::size_t int64digits = 20; consteval std::array buildPowersOfTen() { - std::array result; + std::array result{}; std::uint64_t power = 1; std::size_t exponent = 0; diff --git a/src/libxrpl/basics/Number.cpp b/src/libxrpl/basics/Number.cpp index cd2d213e29..4dba1e8474 100644 --- a/src/libxrpl/basics/Number.cpp +++ b/src/libxrpl/basics/Number.cpp @@ -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),