Browse Source

Fix compilation with clang

cl-refactor
Paweł Bylica 8 years ago
parent
commit
054981020e
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 2
      libethcore/BlockInfo.h
  2. 2
      libethcore/EthashGPUMiner.cpp

2
libethcore/BlockInfo.h

@ -188,8 +188,6 @@ template <class BlockInfoSub>
class BlockHeaderPolished: public BlockInfoSub
{
public:
static const unsigned Fields = BlockInfoSub::BasicFields + BlockInfoSub::SealFields;
BlockHeaderPolished() {}
BlockHeaderPolished(BlockInfo const& _bi): BlockInfoSub(_bi) {}
explicit BlockHeaderPolished(bytes const& _data, Strictness _s = IgnoreSeal, h256 const& _h = h256(), BlockDataType _bdt = BlockData) { populate(&_data, _s, _h, _bdt); }

2
libethcore/EthashGPUMiner.cpp

@ -183,7 +183,7 @@ void EthashGPUMiner::workLoop()
}
uint64_t upper64OfBoundary = (uint64_t)(u64)((u256)w.boundary >> 192);
uint64_t startN;
uint64_t startN = 0;
if (w.exSizeBits >= 0)
startN = w.startNonce | ((uint64_t)index() << (64 - 4 - w.exSizeBits)); // this can support up to 16 devices
m_miner->search(w.headerHash.data(), upper64OfBoundary, *m_hook, (w.exSizeBits >= 0), startN);

Loading…
Cancel
Save