Skip to content

Commit 6d8eecd

Browse files
author
MarcoFalke
committed
refactor: Avoid implicit-integer-sign-change in createTransaction
1 parent 71b6319 commit 6d8eecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class WalletImpl : public Wallet
286286
if (!res) return util::Error{util::ErrorString(res)};
287287
const auto& txr = *res;
288288
fee = txr.fee;
289-
change_pos = txr.change_pos ? *txr.change_pos : -1;
289+
change_pos = txr.change_pos ? int(*txr.change_pos) : -1;
290290

291291
return txr.tx;
292292
}

0 commit comments

Comments
 (0)