You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because first(v) + (i - 1)*step_hp(v)) in getindex can overflow. A solution is to use checkbounds(1:3:4, 6148914691236517207) which will throw a BoundsError for the above, but is not suitable for step ranges where the length cannot be represented in the integer type: checkbounds(-10:1:typemax(Int), 10) throws an OverflowError.
The text was updated successfully, but these errors were encountered:
For example
This happens because
first(v) + (i - 1)*step_hp(v))
ingetindex
can overflow. A solution is to usecheckbounds(1:3:4, 6148914691236517207)
which will throw a BoundsError for the above, but is not suitable for step ranges where the length cannot be represented in the integer type:checkbounds(-10:1:typemax(Int), 10)
throws an OverflowError.The text was updated successfully, but these errors were encountered: