diff options
author | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
---|---|---|
committer | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
commit | 8d657a651735426388c5f7462e2dbf24225a26cb (patch) | |
tree | 125b0e5b08f351d9d53eb11aee85673f779ce99f /src/rpcwallet.cpp | |
parent | b8d92236f61699846f67d8ce6cb55458a46f9de1 (diff) |
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r-- | src/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 215da2ea12..078bbc1f13 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1536,7 +1536,7 @@ Value gettransaction(const Array& params, bool fHelp) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid or non-wallet transaction id"); const CWalletTx& wtx = pwalletMain->mapWallet[hash]; - int64_t nCredit = wtx.GetCredit(filter); + int64_t nCredit = wtx.GetCredit(filter != 0); int64_t nDebit = wtx.GetDebit(filter); int64_t nNet = nCredit - nDebit; int64_t nFee = (wtx.IsFromMe(filter) ? wtx.GetValueOut() - nDebit : 0); |