Skip to content

Commit 6c7b407

Browse files
committed
change getindex index to Integer
1 parent 8a6c975 commit 6c7b407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fixed_arrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function Random.randn(rng::Random.AbstractRNG, ::Type{V}) where V <: StaticVecto
115115
V(ntuple(i-> randn(rng, T), N))
116116
end
117117

118-
Base.@propagate_inbounds function Base.getindex(v::StaticVector{N,T}, i::Int) where {N,T}
118+
Base.@propagate_inbounds function Base.getindex(v::StaticVector{N,T}, i::Integer) where {N,T}
119119
return v.data[i]
120120
end
121121

0 commit comments

Comments
 (0)