Browse Source

Compile warnings fix.

cl-refactor
Gav Wood 10 years ago
parent
commit
cddda07aa5
  1. 4
      libethereum/BlockChain.h

4
libethereum/BlockChain.h

@ -443,7 +443,7 @@ public:
RLP r(_block);
unsigned i = 0;
if (_ir && (ImportRequirements::UncleBasic | ImportRequirements::UncleParent | ImportRequirements::UncleSeals))
if (_ir && !!(ImportRequirements::UncleBasic | ImportRequirements::UncleParent | ImportRequirements::UncleSeals))
for (auto const& uncle: r[2])
{
BlockHeader uh;
@ -475,7 +475,7 @@ public:
++i;
}
i = 0;
if (_ir && (ImportRequirements::TransactionBasic | ImportRequirements::TransactionSignatures))
if (_ir && !!(ImportRequirements::TransactionBasic | ImportRequirements::TransactionSignatures))
for (RLP const& tr: r[1])
{
bytesConstRef d = tr.data();

Loading…
Cancel
Save