diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 5ee3ac1017a2d..5ec677a2db340 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -408,7 +408,11 @@ function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{AbstractUnitRange,Va @_inline_meta checkindex(Bool, IA[1], i) end -function checkbounds_linear_indices(::Type{Bool}, IA::Tuple, i::Union{Slice,Colon}) +function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{Vararg{OneTo}}, i::Union{Slice,Colon}) + partial_linear_indexing_warning_lookup(length(IA)) + true +end +function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{AbstractUnitRange,Vararg{AbstractUnitRange}}, i::Union{Slice,Colon}) partial_linear_indexing_warning_lookup(length(IA)) true end 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