Skip to content

Commit

Permalink
Removed unnecessary @inbounds
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Jun 7, 2019
1 parent a84459c commit 494dc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ length(a::MultiValue) = length(a.array)

@propagate_inbounds function getindex(
a::MultiValue{S,T,N}, I::Vararg{Integer,N}) where {S,T,N}
@inbounds a.array[I...]
a.array[I...]
end

@propagate_inbounds function getindex(a::MultiValue, i::Integer)
@inbounds a.array[i]
a.array[i]
end

eltype(a::Type{MultiValue{S,T,N,L}}) where {S,T,N,L} = T
Expand Down

0 comments on commit 494dc4d

Please sign in to comment.