aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
authorENikS <evgeni@eniks.com>2014-09-06 15:59:59 -0400
committerENikS <evgeni@eniks.com>2014-09-06 15:59:59 -0400
commit8d657a651735426388c5f7462e2dbf24225a26cb (patch)
tree125b0e5b08f351d9d53eb11aee85673f779ce99f /src/coins.h
parentb8d92236f61699846f67d8ce6cb55458a46f9de1 (diff)
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
Diffstat (limited to 'src/coins.h')
-rw-r--r--src/coins.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.h b/src/coins.h
index d338e3172e..e70b19ff8f 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) {