Skip to content

Commit 6241f11

Browse files
better type choice
1 parent 39162db commit 6241f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/LinearSolveSparspakExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function LinearSolve.init_cacheval(
2929
nonzeros(A)),
3030
factorize = false)
3131
else
32-
return sparspaklu(SparseMatrixCSC(0, 0, [one(Ti)], Ti[], eltype(A)[]),
32+
return sparspaklu(SparseMatrixCSC{Tv, Ti}(zero(Ti), zero(Ti), [one(Ti)], Ti[], eltype(A)[]),
3333
factorize = false)
3434
end
3535
else

0 commit comments

Comments
 (0)