Skip to content

Commit 04216bc

Browse files
committed
CartesianIndex in checkbounds with Broadcasted
1 parent ea20d0b commit 04216bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinearAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ function Base.checkbounds(::Type{Bool}, A::AbstractMatrix, b::BandIndex)
530530
checkbounds(Bool, A, _torowcol(b)...)
531531
end
532532
function Base.checkbounds(A::Broadcasted, b::BandIndex)
533-
checkbounds(A, _torowcol(b)...)
533+
checkbounds(A, CartesianIndex(b))
534534
end
535535

536536
include("adjtrans.jl")

0 commit comments

Comments
 (0)