Skip to content

Commit

Permalink
Remove unnecessary @inbounds
Browse files Browse the repository at this point in the history
Similar to JuliaLang/julia#48260, this
`@inbounds` hurts effects tainting.
  • Loading branch information
Keno committed Jan 12, 2023
1 parent 7356cba commit 4e78796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ end
function Base.getindex(j::Jet{T, N}, i::Integer) where {T, N}
(0 <= i <= N) || throw(BoundsError(j, i))
i == 0 && return j.f₀
@inbounds j.fₙ[i]
return j.fₙ[i]
end

function deriv(j::Jet{T, N}) where {T, N}
Expand Down

0 comments on commit 4e78796

Please sign in to comment.