Skip to content

Commit fa347a9

Browse files
author
MacroFake
committed
rpc: Fix implicit-integer-sign-change in gettxout
1 parent fac2c79 commit fa347a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,7 @@ static RPCHelpMan gettxout()
993993
UniValue ret(UniValue::VOBJ);
994994

995995
uint256 hash(ParseHashV(request.params[0], "txid"));
996-
int n = request.params[1].get_int();
997-
COutPoint out(hash, n);
996+
COutPoint out{hash, request.params[1].getInt<uint32_t>()};
998997
bool fMempool = true;
999998
if (!request.params[2].isNull())
1000999
fMempool = request.params[2].get_bool();

0 commit comments

Comments
 (0)