mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 07:30:30 +00:00
Fix clang-tidy
This commit is contained in:
@@ -4890,7 +4890,7 @@ public:
|
||||
// Smallest-magnitude IOU: mantissa kMinValue, exponent kMinOffset
|
||||
// (= 1e-81). divide(tinyUsd, XRP(1000)) underflows below kMinOffset
|
||||
// and canonicalizes to 0, so getRate() returns 0.
|
||||
auto const tinyUsd = STAmount{usd, 1'000'000'000'000'000LL, -96};
|
||||
auto const tinyUsd = STAmount{usd, UINT64_C(1'000'000'000'000'000), -96};
|
||||
|
||||
auto setup = [&](Env& env) {
|
||||
env.fund(XRP(100'000), gw, alice, bob);
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/ApiVersion.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/PathAsset.h>
|
||||
#include <xrpl/protocol/SField.h>
|
||||
#include <xrpl/protocol/STAmount.h>
|
||||
#include <xrpl/protocol/STPathSet.h>
|
||||
#include <xrpl/protocol/UintTypes.h>
|
||||
|
||||
Reference in New Issue
Block a user