From 9208068125e8704b88cc7fcb9bd2ecb219efb5be Mon Sep 17 00:00:00 2001 From: Daniel Rebelsky <4641927+drebelsky@users.noreply.github.com> Date: Wed, 18 Mar 2026 15:05:41 -0700 Subject: [PATCH] Remove C-style casts --- src/main/CommandHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/CommandHandler.cpp b/src/main/CommandHandler.cpp index b52735ec2d..7774840f43 100644 --- a/src/main/CommandHandler.cpp +++ b/src/main/CommandHandler.cpp @@ -1402,8 +1402,8 @@ CommandHandler::testAcc(std::string const& params, std::string& retStr) auto const& ae = acc.current().data.account(); root["name"] = accName->second; root["id"] = KeyUtils::toStrKey(ae.accountID); - root["balance"] = (Json::Int64)ae.balance; - root["seqnum"] = (Json::UInt64)ae.seqNum; + root["balance"] = static_cast(ae.balance); + root["seqnum"] = static_cast(ae.seqNum); } } retStr = root.toStyledString(); @@ -1446,7 +1446,7 @@ CommandHandler::testTx(std::string const& params, std::string& retStr) root["to_name"] = to->second; root["from_id"] = KeyUtils::toStrKey(fromAccount.getPublicKey()); root["to_id"] = KeyUtils::toStrKey(toAccount.getPublicKey()); - root["amount"] = (Json::UInt64)paymentAmount; + root["amount"] = static_cast(paymentAmount); TransactionTestFramePtr txFrame; if (create != retMap.end() && create->second == "true")