@@ -1015,7 +1015,7 @@ circshift!(dest::AbstractArray, src, shiftamt) = circshift!(dest, src, (shiftamt
1015
1015
# _circshift!(dest, src, ("second half of dim1", "second half of dim2")) --> copyto!
1016
1016
@inline function _circshift! (dest, rdest, src, rsrc,
1017
1017
inds:: Tuple{AbstractUnitRange,Vararg{Any}} ,
1018
- shiftamt:: Tuple{Integer,Vararg{Any}} )
1018
+ shiftamt:: Tuple{Integer,Vararg{Any}} ):: typeof (dest)
1019
1019
ind1, d = inds[1 ], shiftamt[1 ]
1020
1020
s = mod (d, length (ind1))
1021
1021
sf, sl = first (ind1)+ s, last (ind1)- s
@@ -1075,7 +1075,7 @@ end
1075
1075
1076
1076
# This uses the same strategy described above for _circshift!
1077
1077
@inline function _circcopy! (dest, rdest, indsdest:: Tuple{AbstractUnitRange,Vararg{Any}} ,
1078
- src, rsrc, indssrc:: Tuple{AbstractUnitRange,Vararg{Any}} )
1078
+ src, rsrc, indssrc:: Tuple{AbstractUnitRange,Vararg{Any}} ):: typeof (dest)
1079
1079
indd1, inds1 = indsdest[1 ], indssrc[1 ]
1080
1080
l = length (indd1)
1081
1081
s = mod (first (inds1)- first (indd1), l)
0 commit comments