Skip to content
Snippets Groups Projects
Commit f1989d3a authored by Arne Goedeke's avatar Arne Goedeke
Browse files

enumerate(): fixed integer overflow handling

This change fixes two bugs
1) the overflow checks were incorrect, because signed integers do not
   overflow
2) when overflow was actually detected, the code fell back to the
   slow path (using f_add) with the last array element as the new start
   value, which led to wrong results
parent ee11009b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment