Skip to content

Commit

Permalink
remove inbounds in Base._unsafe_getindex (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Jul 10, 2023
1 parent 9be3ba2 commit 5f6d934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FillArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ Base.@propagate_inbounds @inline function _fill_getindex(A::AbstractFill, kr::Ab
fillsimilar(A, count(kr))
end

Base.@propagate_inbounds @inline Base._unsafe_getindex(::IndexStyle, F::AbstractFill, I::Vararg{Union{Real, AbstractArray}, N}) where N =
@inbounds(return _fill_getindex(F, I...))
Base.@propagate_inbounds @inline Base._unsafe_getindex(::IndexStyle, F::AbstractFill, I::Vararg{Union{Real, AbstractArray}}) =
_fill_getindex(F, I...)



Expand Down

0 comments on commit 5f6d934

Please sign in to comment.