From 5f6d9340ac0a20c6ad9d6b68bc77aba75075ea29 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Tue, 11 Jul 2023 00:47:03 +0530 Subject: [PATCH] remove inbounds in Base._unsafe_getindex (#267) --- src/FillArrays.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FillArrays.jl b/src/FillArrays.jl index 4b2dbe47..894e554c 100644 --- a/src/FillArrays.jl +++ b/src/FillArrays.jl @@ -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...)