aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-16 04:43:49 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-16 04:47:55 +0200
commitdc54e9db982118ec71cc11b8d027e5a569810cba (patch)
tree34b0ca1ab9f4c153a551750dae6fea3b2dbf286a /src/rpcwallet.cpp
parent7388b74cd2c5e3b71e991d26953c89c059ba6f2f (diff)
parent8d657a651735426388c5f7462e2dbf24225a26cb (diff)
downloadbitcoin-dc54e9db982118ec71cc11b8d027e5a569810cba.tar.xz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 100d6c2bd0..997b861e59 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);