Skip to content

Commit aa4c979

Browse files
Fix std::max argument types for other platforms in miner.cpp
1 parent 570aaaf commit aa4c979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ bool CreateCoinStake(CMutableTransaction& coinstakeTx, CBlock* pblock, std::shar
726726
if (nTargetStakeInputs > 0) {
727727
outputs = std::max(int(coinstakeTx.vin.size()) + nTargetStakeInputs - nTotalInputs, 1);
728728
} else if (nTargetStakeInputs == 0) {
729-
outputs = std::max(nCredit / nAutomaticInputSize, 1l);
729+
outputs = std::max(nCredit / nAutomaticInputSize, static_cast<int64_t>(1));
730730
}
731731
for (unsigned int i = 0; i < outputs; i++) {
732732
coinstakeTx.vout.push_back(CTxOut(nCredit / outputs, scriptPubKeyOut));

0 commit comments

Comments
 (0)