Fixed 64bit implementation
Merge pull request #11165 from expensivegasprices/master

Fixed 64bit implementation