From 84ca271d95dfaa82fa6dfcc11647de532132765f Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Tue, 26 May 2026 13:45:55 -0400 Subject: [PATCH] Address some AI review feedback: predeclare, include, format, comment - Predeclare type reference in Rules.h - Remove an unneeded include in EscrowToken_test - Number_test will format negative BigInts correctly (unused) - Remove an inaccurate comment --- include/xrpl/protocol/Rules.h | 1 + src/test/app/EscrowToken_test.cpp | 1 - src/test/basics/Number_test.cpp | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/xrpl/protocol/Rules.h b/include/xrpl/protocol/Rules.h index b34e7995d3..9c17ff2391 100644 --- a/include/xrpl/protocol/Rules.h +++ b/include/xrpl/protocol/Rules.h @@ -123,6 +123,7 @@ private: }; class NumberSO; +class NumberMantissaScaleGuard; bool useRulesGuards(Rules const& rules); diff --git a/src/test/app/EscrowToken_test.cpp b/src/test/app/EscrowToken_test.cpp index bac2f798ad..5bb1303dba 100644 --- a/src/test/app/EscrowToken_test.cpp +++ b/src/test/app/EscrowToken_test.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/src/test/basics/Number_test.cpp b/src/test/basics/Number_test.cpp index 52af19ed36..243bdb017b 100644 --- a/src/test/basics/Number_test.cpp +++ b/src/test/basics/Number_test.cpp @@ -31,7 +31,7 @@ class Number_test : public beast::unit_test::Suite int count = 0; for (auto it = s.rbegin(); it != s.rend(); ++it) { - if (count != 0 && count % 3 == 0) + if (count != 0 && count % 3 == 0 && isdigit(*it)) out.insert(out.begin(), '_'); out.insert(out.begin(), *it); ++count; @@ -1596,7 +1596,6 @@ public: constexpr std::int64_t kAValue = 1'000'000'000'000'049'863LL; constexpr std::int64_t kBValue = 9'223'372'036'854'315'903LL; - // Public conversion operator: STAmount::operator Number() const. Number const a = kAValue; Number const b = kBValue; Number const product = a * b;