Skip to content

Commit e2e34f6

Browse files
authored
correction in Base.isassigned with Tridiagonal boundscheck error (#50488)
See #49827 (comment)
1 parent db6193c commit e2e34f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/src/tridiag.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ function diag(M::Tridiagonal{T}, n::Integer=0) where T
633633
end
634634

635635
@inline function Base.isassigned(A::Tridiagonal, i::Int, j::Int)
636-
@boundscheck checkbounds(A, i, j)
636+
@boundscheck checkbounds(Bool, A, i, j) || return false
637637
if i == j
638638
return @inbounds isassigned(A.d, i)
639639
elseif i == j + 1

0 commit comments

Comments
 (0)