Skip to content

Commit 01b3fd1

Browse files
committed
Base.@propagate_inbounds
1 parent d1af860 commit 01b3fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ArrayInterface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function __init__()
135135
Base.firstindex(i::BandedMatrixIndex) = 1
136136
Base.lastindex(i::BandedMatrixIndex) = i.count
137137
Base.length(i::BandedMatrixIndex) = lastindex(i)
138-
@propagate_inbounds function Base.getindex(ind::BandedMatrixIndex, i::Int)
138+
Base.@propagate_inbounds function Base.getindex(ind::BandedMatrixIndex, i::Int)
139139
@boundscheck 1 <= i <= ind.count || throw(BoundsError(ind, i))
140140
_i = i
141141
p = 1
@@ -253,7 +253,7 @@ function __init__()
253253
colindobj = BlockBandedMatrixIndex(currenti - 1, refinds, refcolcoords, false)
254254
rowindobj, colindobj
255255
end
256-
@propagate_inbounds function Base.getindex(ind::BlockBandedMatrixIndex, i::Int)
256+
Base.@propagate_inbounds function Base.getindex(ind::BlockBandedMatrixIndex, i::Int)
257257
@boundscheck 1 <= i <= ind.count || throw(BoundsError(ind, i))
258258
p = 1
259259
while i - ind.refinds[p] >= 0
@@ -293,7 +293,7 @@ function __init__()
293293
Base.firstindex(i::BandedBlockBandedMatrixIndex) = 1
294294
Base.lastindex(i::BandedBlockBandedMatrixIndex) = i.count
295295
Base.length(i::BandedBlockBandedMatrixIndex) = lastindex(i)
296-
@propagate_inbounds function Base.getindex(ind::BandedBlockBandedMatrixIndex, i::Int)
296+
Base.@propagate_inbounds function Base.getindex(ind::BandedBlockBandedMatrixIndex, i::Int)
297297
@boundscheck 1 <= i <= ind.count || throw(BoundsError(ind, i))
298298
p = 1
299299
while i - ind.refinds[p] >= 0

0 commit comments

Comments
 (0)