diff --git a/src/miner.cpp b/src/miner.cpp index 466533ebb..7aedb7a34 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -207,12 +207,12 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 // How much of the block should be dedicated to high-priority transactions, // included regardless of the fees they pay - const unsigned int nBlockPrioritySize = std::min( nBlockMaxSize, GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE) ); + const unsigned int nBlockPrioritySize = std::min( nBlockMaxSize, (unsigned int) GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE) ); // nBlockPrioritySize = std::min(nBlockMaxSize, nBlockPrioritySize); // Minimum block size you want to create; block will be filled with free transactions // until there are no more or the block reaches this size: - const unsigned int nBlockMinSize = std::min(nBlockMaxSize, GetArg("-blockminsize", DEFAULT_BLOCK_MIN_SIZE)); + const unsigned int nBlockMinSize = std::min(nBlockMaxSize, (unsigned int) GetArg("-blockminsize", DEFAULT_BLOCK_MIN_SIZE)); // nBlockMinSize = std::min(nBlockMaxSize, nBlockMinSize); //fprintf(stderr,"%s: nBlockMaxSize=%u, nBlockPrioritySize=%u, nBlockMinSize=%u\n", __func__, nBlockMaxSize, nBlockPrioritySize, nBlockMinSize);