Skip to content

Commit 3563ead

Browse files
author
oscarddssmith
committed
bugfix
1 parent 665350c commit 3563ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ end
8686
function Base.setproperty!(cache::LinearCache, name::Symbol, x)
8787
if name === :A
8888
if hasproperty(cache.alg, :precs)
89-
Pl, Pr = cache.alg.precs(A, cache.p)
89+
Pl, Pr = cache.alg.precs(x, cache.p)
9090
setfield!(cache, :Pl, Pl)
9191
setfield!(cache, :Pr, Pr)
9292
end
9393
setfield!(cache, :isfresh, true)
9494
elseif name === :p
9595
if hasproperty(cache.alg, :precs)
96-
Pl, Pr = cache.alg.precs(cache.A, p)
96+
Pl, Pr = cache.alg.precs(cache.A, x)
9797
setfield!(cache, :Pl, Pl)
9898
setfield!(cache, :Pr, Pr)
9999
end

0 commit comments

Comments
 (0)