From c9c35780d29733bd3a945bbb1766004bff0de82e Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 14 Oct 2025 18:00:58 -0400 Subject: [PATCH] reduce diff more --- include/xrpl/protocol/MPTAmount.h | 3 +-- include/xrpl/protocol/XRPAmount.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/xrpl/protocol/MPTAmount.h b/include/xrpl/protocol/MPTAmount.h index 7ece7cc3b5..419450eeb9 100644 --- a/include/xrpl/protocol/MPTAmount.h +++ b/include/xrpl/protocol/MPTAmount.h @@ -149,12 +149,11 @@ mulRatio( bool roundUp) { using namespace boost::multiprecision; - using int128 = boost::multiprecision::int128_t; if (!den) Throw("division by zero"); - int128 const amt128(amt.value()); + int128_t const amt128(amt.value()); auto const neg = amt.value() < 0; auto const m = amt128 * num; auto r = m / den; diff --git a/include/xrpl/protocol/XRPAmount.h b/include/xrpl/protocol/XRPAmount.h index b595ec0bc7..a7a013d625 100644 --- a/include/xrpl/protocol/XRPAmount.h +++ b/include/xrpl/protocol/XRPAmount.h @@ -286,12 +286,11 @@ mulRatio( bool roundUp) { using namespace boost::multiprecision; - using int128 = boost::multiprecision::int128_t; if (!den) Throw("division by zero"); - int128 const amt128(amt.drops()); + int128_t const amt128(amt.drops()); auto const neg = amt.drops() < 0; auto const m = amt128 * num; auto r = m / den;