mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-07 13:40:38 +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)};
|
if (!res) return util::Error{util::ErrorString(res)};
|
||||||
const auto& txr = *res;
|
const auto& txr = *res;
|
||||||
fee = txr.fee;
|
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;
|
return txr.tx;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user