If you have a very long number like 123456789012345678901 you will get an overflow in line 287.

Thanks for reporting the issue, I just fixed it with commit 5164c9b3b.
I've also updated the unit tests.