mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-29 17:19:30 +02:00
refactor: Avoid implicit-integer-sign-change in createTransaction
This commit is contained in:
parent
71b63195b3
commit
6d8eecd33a
@ -286,7 +286,7 @@ public:
|
||||
if (!res) return util::Error{util::ErrorString(res)};
|
||||
const auto& txr = *res;
|
||||
fee = txr.fee;
|
||||
change_pos = txr.change_pos ? *txr.change_pos : -1;
|
||||
change_pos = txr.change_pos ? int(*txr.change_pos) : -1;
|
||||
|
||||
return txr.tx;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user