Skip to content

Commit 5272433

Browse files
Merge pull request #87 from AayushSabharwal/as/fix-oop-sdde
fix: fix `wrap_functions_and_history` when `g` is both iip and oop
2 parents 29af789 + 788df63 commit 5272433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functionwrapper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
(f::SDEFunctionWrapper{false})(u, p, t) = f.f(u, f.h, p, t)
3535

3636
function wrap_functions_and_history(f::SDDEFunction, g, h)
37-
gwh = SDEDiffusionTermWrapper{isinplace(g, 5), typeof(g), typeof(h)}(g, h)
37+
gwh = SDEDiffusionTermWrapper{isinplace(f), typeof(g), typeof(h)}(g, h)
3838

3939
if f.jac === nothing
4040
jac = nothing

0 commit comments

Comments
 (0)