From 6f001e24a6255008da959cb7b4f6000adda8c6b6 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:21:38 +0200 Subject: [PATCH] Error in type params --- src/highlevel/common.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlevel/common.jl b/src/highlevel/common.jl index 65e59461..af1b1b4d 100644 --- a/src/highlevel/common.jl +++ b/src/highlevel/common.jl @@ -291,8 +291,8 @@ end __chunksize(x) = ForwardDiff.Chunk(x) __chunksize(x::StaticArray) = ForwardDiff.Chunk{ForwardDiff.pickchunksize(prod(Size(x)))}() -function __chunksize(::Union{AutoSparse{<:AutoForwardDiff}{C}, AutoForwardDiff{C}, - AutoSparse{<:AutoPolyesterForwardDiff}{C}, AutoPolyesterForwardDiff{C}}) where {C} +function __chunksize(::Union{AutoSparse{<:AutoForwardDiff{C}}, AutoForwardDiff{C}, + AutoSparse{<:AutoPolyesterForwardDiff{C}}, AutoPolyesterForwardDiff{C}}) where {C} C === nothing && return nothing C isa Integer && !(C isa Bool) && return C ≤ 0 ? nothing : Val(C) return nothing