Skip to content

Commit b019cdc

Browse files
committed
Merge bitcoin/bitcoin#25095: rpc: Fix implicit-integer-sign-change in gettxout
fa347a9 rpc: Fix implicit-integer-sign-change in gettxout (MacroFake) Pull request description: ACKs for top commit: theStack: Code-review ACK fa347a9 Tree-SHA512: 2a1128f714119b6b6cfeb20ee59c4f46404d5a83942253c73de64b0289a7d41e4437cf77d19b1cf623e2dd15fbaa1ec7acd03cc5d6dde41b3c7d06a082073ea1
2 parents aa3200d + fa347a9 commit b019cdc

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)