Skip to content

Commit

Permalink
Fix bounds check
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de>
  • Loading branch information
jishnub and dkarrasch authored Feb 23, 2025
1 parent c9e2b07 commit b93dc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tridiag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ end
end

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

0 comments on commit b93dc50

Please sign in to comment.