Avoid overflow error for large int on 64-bit
Merge pull request #20 from alexanderlaw/master

I am OK with this change. Merging...