From 40cf90b4ff2c1edd9833f4eb0dc1b7b0aed42028 Mon Sep 17 00:00:00 2001 From: Duke Date: Sat, 21 Sep 2024 11:03:49 -0400 Subject: [PATCH] Fix compile issue with missing cast to unsigned int --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);