perseverance icon indicating copy to clipboard operation
perseverance copied to clipboard

Fix int range exceeded

Open achengs opened this issue 3 years ago • 0 comments

The first commit has a new test that demonstrates exceeding the range for ints.

The second commit has the proposed fix: int can't handle positive infinity directly, but * and min can. And once the value passes through them, then int is safe to use.

achengs avatar Oct 08 '21 18:10 achengs