Shift fix in Riecoin code

Fixed a piece of code that could cause problems when porting the miner
to other platforms.