mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 14:50:54 +00:00
Fix renaming
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user