Fix renaming

This commit is contained in:
Ed Hennis
2026-02-04 21:16:45 -05:00
parent 154bb65c35
commit d57e37c34b
2 changed files with 7 additions and 17 deletions

View File

@@ -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);

View File

@@ -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.