From fa347a906685df1d44cafa3e6cc7fdd2ace68ff5 Mon Sep 17 00:00:00 2001 From: MacroFake Date: Mon, 9 May 2022 17:31:51 +0200 Subject: rpc: Fix implicit-integer-sign-change in gettxout --- src/rpc/blockchain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rpc/blockchain.cpp') diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 50bf764e53..352df4d902 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -993,8 +993,7 @@ static RPCHelpMan gettxout() UniValue ret(UniValue::VOBJ); uint256 hash(ParseHashV(request.params[0], "txid")); - int n = request.params[1].get_int(); - COutPoint out(hash, n); + COutPoint out{hash, request.params[1].getInt()}; bool fMempool = true; if (!request.params[2].isNull()) fMempool = request.params[2].get_bool(); -- cgit v1.2.3