o2sh/add-one

Integer overflow

lambda-fairy opened this issue · 1 comments

The program uses i32, which will overflow if the input is too large.

Suggest using a bigint library such as num-bigint.

o2sh commented

I've just replaced i32 with BigInt. Tell me if it's Ok.

Thx for the feedback by the way. If you see other issues, plz tell me.