diff options
| author | Pieter Wuille <[email protected]> | 2014-09-16 04:43:49 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-16 04:47:55 +0200 |
| commit | dc54e9db982118ec71cc11b8d027e5a569810cba (patch) | |
| tree | 34b0ca1ab9f4c153a551750dae6fea3b2dbf286a /src/rpcwallet.cpp | |
| parent | Merge pull request #4911 (diff) | |
| parent | Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (diff) | |
| download | discoin-dc54e9db982118ec71cc11b8d027e5a569810cba.tar.xz discoin-dc54e9db982118ec71cc11b8d027e5a569810cba.zip | |
Merge pull request #4825
8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)
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 100d6c2bd..997b861e5 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); |