Skip to content

Commit b93dc50

Browse files
jishnubdkarrasch
andauthored
Fix bounds check
Co-authored-by: Daniel Karrasch <[email protected]>
1 parent c9e2b07 commit b93dc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tridiag.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ end
475475
end
476476

477477
@inline function getindex(A::SymTridiagonal, b::BandIndex)
478-
@boundscheck checkbounds(A, i, j)
478+
@boundscheck checkbounds(A, b)
479479
if b.band == 0
480480
return symmetric((@inbounds A.dv[b.index]), :U)::symmetric_type(eltype(A.dv))
481481
elseif b.band == -1

0 commit comments

Comments
 (0)