Skip to content

Commit 3237c2c

Browse files
committed
Fix tuple type error
1 parent 2c38706 commit 3237c2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tensors/indexmanipulations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Base.@constprop :aggressive function TK.insertleftunit(
236236
W = TK.insertleftunit(space(t), i; kwargs...)
237237
tdst = similar(t, W)
238238
for (I, v) in nonzero_pairs(t)
239-
I′ = CartesianIndex(TT.insertafter(I.I, i - 1, 1))
239+
I′ = CartesianIndex(TT.insertafter(I.I, i - 1, (1,)))
240240
tdst[I′] = TK.insertleftunit(v, i; kwargs...)
241241
end
242242
return tdst
@@ -248,7 +248,7 @@ Base.@constprop :aggressive function TK.insertrightunit(
248248
W = TK.insertrightunit(space(t), i; kwargs...)
249249
tdst = similar(t, W)
250250
for (I, v) in nonzero_pairs(t)
251-
I′ = CartesianIndex(TT.insertafter(I.I, i, 1))
251+
I′ = CartesianIndex(TT.insertafter(I.I, i, (1,)))
252252
tdst[I′] = TK.insertrightunit(v, i; kwargs...)
253253
end
254254
return tdst

0 commit comments

Comments
 (0)