diff --git a/Project.toml b/Project.toml index 9eb3ccf..01c60fd 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ArrayLayouts" uuid = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" authors = ["Sheehan Olver "] -version = "0.6.4" +version = "0.6.5" [deps] FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b" diff --git a/src/memorylayout.jl b/src/memorylayout.jl index 975a6f7..44187aa 100644 --- a/src/memorylayout.jl +++ b/src/memorylayout.jl @@ -648,7 +648,7 @@ colsupport(A, j) = colsupport(MemoryLayout(A), A, j) colsupport(A) = colsupport(A, axes(A,2)) # TODO: generalise to other subarrays -function colsupport(A::SubArray{<:Any,N,<:Any,<:Tuple{Slice,Any}}, j) where N +function colsupport(A::SubArray{<:Any,N,<:Any,<:Tuple{Slice,AbstractVector}}, j) where N _, jr = parentindices(A) colsupport(parent(A), jr[j]) end diff --git a/test/test_layouts.jl b/test/test_layouts.jl index 97446ab..8e6b3d5 100644 --- a/test/test_layouts.jl +++ b/test/test_layouts.jl @@ -428,4 +428,8 @@ struct FooNumber <: Number end MemoryLayout(revD) @test 0 == @allocated MemoryLayout(revD) end + + @testset "bug in vec views BandedMatrices#233" begin + @test colsupport(view(randn(5,5),:,1),1:1) ≡ Base.OneTo(5) + end end