Skip to content

Commit 742d82f

Browse files
committed
bug fix
1 parent 7f1ca81 commit 742d82f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/other/index.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,15 @@ Base.@propagate_inbounds parentcols(ind::SubIndex, idx) =
512512

513513
Base.@propagate_inbounds parentcols(ind::SubIndex, ::Colon) = ind.cols
514514

515-
function SubIndex(parent::AbstractIndex, cols::AbstractUnitRange{Int})
516-
l = last(cols)
517-
f = first(cols)
518-
if !checkindex(Bool, Base.OneTo(length(parent)), cols)
519-
throw(BoundsError(parent, cols))
520-
end
521-
remap = (1:l) .- f .+ 1
522-
return SubIndex(parent, cols, remap)
523-
end
515+
# function SubIndex(parent::AbstractIndex, cols::AbstractUnitRange{Int})
516+
# l = last(cols)
517+
# f = first(cols)
518+
# if !checkindex(Bool, Base.OneTo(length(parent)), cols)
519+
# throw(BoundsError(parent, cols))
520+
# end
521+
# remap = collect((1:l) .- f .+ 1)
522+
# return SubIndex(parent, cols, remap)
523+
# end
524524

525525
function SubIndex(parent::AbstractIndex, cols::AbstractVector{Int})
526526
ncols = length(parent)

0 commit comments

Comments
 (0)