Skip to content

Commit 2cf2bd2

Browse files
Update src/PreallocationTools.jl
Co-authored-by: Qingyu Qu <[email protected]>
1 parent 7a822af commit 2cf2bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PreallocationTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const dualcache = DiffCache
128128
129129
Returns the `Dual` or normal cache array stored in `dc` based on the type of `u`.
130130
"""
131-
function get_tmp(dc::DiffCache, u::T) where {T <: ForwardDiff.Dual{T2}}
131+
function get_tmp(dc::DiffCache, u::T) where {T <: ForwardDiff.Dual}
132132
if isbitstype(T)
133133
nelem = div(sizeof(T), sizeof(eltype(dc.dual_du))) * length(dc.du)
134134
if nelem > length(dc.dual_du)

0 commit comments

Comments
 (0)