Skip to content

Commit 5750f7e

Browse files
try this for v0.6..
1 parent f4dd609 commit 5750f7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/array_partition.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ end
44
ArrayPartition(x...) = ArrayPartition((x...))
55
function ArrayPartition{T,T2<:Tuple}(x::T2,::Type{Val{T}}=Val{false})
66
if T
7-
return ArrayPartition(((copy(a) for a in x)...))
7+
return ArrayPartition{T2}(((copy(a) for a in x)...))
88
else
9-
return ArrayPartition((x...))
9+
return ArrayPartition{T2}((x...))
1010
end
1111
end
1212
Base.similar(A::ArrayPartition) = ArrayPartition((similar(x) for x in A.x)...)

0 commit comments

Comments
 (0)