Fix GCC 7.4.0 warning

Warning: enumeral and non-enumeral type in conditional expression.
This commit is contained in:
Hennadii Stepanov 2019-06-25 20:18:12 +03:00
parent 332c6134bb
commit d8bd97d5ee
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -2266,7 +2266,7 @@ void MaybeResendWalletTxs()
CWallet::Balance CWallet::GetBalance(const int min_depth, bool avoid_reuse) const
{
Balance ret;
isminefilter reuse_filter = avoid_reuse ? 0 : ISMINE_USED;
isminefilter reuse_filter = avoid_reuse ? ISMINE_NO : ISMINE_USED;
{
auto locked_chain = chain().lock();
LOCK(cs_wallet);