Skip to content

Commit

Permalink
type stability
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed May 14, 2024
1 parent 0de7599 commit 7c7e83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -706,5 +706,5 @@ function circshift(x::Tuple{Any,Any,Any,Vararg{Any}}, shift::Integer)
@inline
len = length(x)
j = mod1(shift, len)
ntuple(k -> getindex(x, k-j+ifelse(k>j,0,length(x))), Val(len))
ntuple(k -> getindex(x, k-j+ifelse(k>j,0,length(x))), len)::Tuple
end

0 comments on commit 7c7e83d

Please sign in to comment.