Explictly cast calculation to int, to allow std::max to work.
Explictly cast calculation to int, to allow std::max to work.

Earlz/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source