From d57e37c34bb07c4fea7182aaefd13ed58c45b8d0 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Wed, 4 Feb 2026 21:16:45 -0500 Subject: [PATCH] Fix renaming --- include/xrpl/protocol/STAmount.h | 5 +---- src/libxrpl/basics/Number.cpp | 19 ++++++------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/include/xrpl/protocol/STAmount.h b/include/xrpl/protocol/STAmount.h index 67f55f082e..8429d070d0 100644 --- a/include/xrpl/protocol/STAmount.h +++ b/include/xrpl/protocol/STAmount.h @@ -521,10 +521,7 @@ STAmount::fromNumber(A const& a, Number const& number) return STAmount{asset, intValue, 0, negative}; } - XRPL_ASSERT_PARTS( - working.signum() >= 0, - "ripple::STAmount::fromNumber", - "non-negative Number to normalize"); + XRPL_ASSERT_PARTS(working.signum() >= 0, "xrpl::STAmount::fromNumber", "non-negative Number to normalize"); auto const [mantissa, exponent] = working.normalizeToRange(cMinValue, cMaxValue); diff --git a/src/libxrpl/basics/Number.cpp b/src/libxrpl/basics/Number.cpp index 7f306f1088..851ef90c0a 100644 --- a/src/libxrpl/basics/Number.cpp +++ b/src/libxrpl/basics/Number.cpp @@ -19,8 +19,8 @@ #pragma message("Using boost::multiprecision::uint128_t and int128_t") #endif -using uint128_t = ripple::detail::uint128_t; -using int128_t = ripple::detail::int128_t; +using uint128_t = xrpl::detail::uint128_t; +using int128_t = xrpl::detail::int128_t; namespace xrpl { @@ -336,7 +336,7 @@ Number::toInternal(MantissaRange const& range) const --exponent; XRPL_ASSERT_PARTS( mantissa >= referenceMin && mantissa < referenceMin * 10, - "ripple::Number::toInternal()", + "xrpl::Number::toInternal()", "Number is within reference range and has 'log' digits"); } @@ -384,10 +384,7 @@ Number::fromInternal( auto const maxMantissa = range.max; auto const minMantissa = range.min; - XRPL_ASSERT_PARTS( - mantissa >= minMantissa, - "ripple::Number::fromInternal", - "mantissa large enough"); + XRPL_ASSERT_PARTS(mantissa >= minMantissa, "xrpl::Number::fromInternal", "mantissa large enough"); if (mantissa > maxMantissa || mantissa < minMantissa) { @@ -395,9 +392,7 @@ Number::fromInternal( } XRPL_ASSERT_PARTS( - mantissa >= minMantissa && mantissa <= maxMantissa, - "ripple::Number::fromInternal", - "mantissa in range"); + mantissa >= minMantissa && mantissa <= maxMantissa, "xrpl::Number::fromInternal", "mantissa in range"); } auto const sign = negative ? -1 : 1; @@ -406,9 +401,7 @@ Number::fromInternal( exponent_ = exponent; XRPL_ASSERT_PARTS( - (pRange && isnormal(*pRange)) || isnormal(), - "ripple::Number::fromInternal", - "Number is normalized"); + (pRange && isnormal(*pRange)) || isnormal(), "xrpl::Number::fromInternal", "Number is normalized"); } /** Rebuilds the number from components.