diff --git a/base/twiceprecision.jl b/base/twiceprecision.jl index 315eef05d9237..ea92f6c44d2d1 100644 --- a/base/twiceprecision.jl +++ b/base/twiceprecision.jl @@ -210,7 +210,7 @@ function getindex{T}(r::StepRangeLen{T,<:TwicePrecision,<:TwicePrecision}, s::Or @boundscheck checkbounds(r, s) soffset = 1 + round(Int, (r.offset - first(s))/step(s)) soffset = clamp(soffset, 1, length(s)) - ioffset = start(s) + (soffset-1)*step(s) + ioffset = first(s) + (soffset-1)*step(s) if step(s) == 1 || length(s) < 2 newstep = r.step else