Fix OverflowError from tests on 32bit systems.
Merge pull request #111 from eriknw/fix_32bit_overflow

Fix OverflowError from tests on 32bit systems.