diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index d15273dfc9b..25784e0d221 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -286,7 +286,7 @@ class WalletImpl : public Wallet 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; }