Fixed bit difference issues

Note that an integer cannot hold 1024 bits.
Merge pull request #3 from Maplenormandy/patch-1

Fixed bit difference issues