From: CryptoManiac Date: Fri, 4 Sep 2015 13:20:10 +0000 (+0300) Subject: Fix integer overflow issue. X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=commitdiff_plain;h=7e181e309fe7da756ee2e8010740e9b00df44ce5 Fix integer overflow issue. --- diff --git a/Novacoin/StakeModifier.cs b/Novacoin/StakeModifier.cs index 7f45eb8..e6b6f50 100644 --- a/Novacoin/StakeModifier.cs +++ b/Novacoin/StakeModifier.cs @@ -280,7 +280,7 @@ namespace Novacoin } // write the entropy bit of the selected block - nStakeModifierNew |= ((cursor.StakeEntropyBit) << nRound); + nStakeModifierNew |= (((long)cursor.StakeEntropyBit) << nRound); // add the selected block from candidates to selected list mapSelectedBlocks.Add(cursor.Hash, cursor);