diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-16 04:43:49 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-16 04:47:55 +0200 |
commit | dc54e9db982118ec71cc11b8d027e5a569810cba (patch) | |
tree | 34b0ca1ab9f4c153a551750dae6fea3b2dbf286a /src/coins.h | |
parent | 7388b74cd2c5e3b71e991d26953c89c059ba6f2f (diff) | |
parent | 8d657a651735426388c5f7462e2dbf24225a26cb (diff) |
Merge pull request #4825
8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.h b/src/coins.h index c25393f1e0..bf61f55aac 100644 --- a/src/coins.h +++ b/src/coins.h @@ -195,8 +195,8 @@ public: ::Unserialize(s, VARINT(nCode), nType, nVersion); fCoinBase = nCode & 1; std::vector<bool> vAvail(2, false); - vAvail[0] = nCode & 2; - vAvail[1] = nCode & 4; + vAvail[0] = (nCode & 2) != 0; + vAvail[1] = (nCode & 4) != 0; unsigned int nMaskCode = (nCode / 8) + ((nCode & 6) != 0 ? 0 : 1); // spentness bitmask while (nMaskCode > 0) { |