diff --git a/ext/ForwardDiffStaticArraysExt.jl b/ext/ForwardDiffStaticArraysExt.jl index f2b1540b..faed1cab 100644 --- a/ext/ForwardDiffStaticArraysExt.jl +++ b/ext/ForwardDiffStaticArraysExt.jl @@ -103,7 +103,7 @@ end T = typeof(Tag(f, eltype(x))) ydual = static_dual_eval(T, f, x) result = DiffResults.jacobian!(result, extract_jacobian(T, ydual, x)) - result = DiffResults.value!(d -> value(T,d), result, ydual) + result = DiffResults.value!(Base.Fix1(value,T), result, ydual) return result end