Skip to content

Commit f8cd198

Browse files
committed
dualT4 should not be promoted with T since T might already be a dual
1 parent 3a27916 commit f8cd198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/norecompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function wrapfun_iip(ff,
5757
dualT = dualgen(T)
5858
dualT1 = ArrayInterface.promote_eltype(T1, dualT)
5959
dualT2 = ArrayInterface.promote_eltype(T2, dualT)
60-
dualT4 = dualgen(promote_type(T, T4))
60+
dualT4 = dualgen(T4)
6161

6262
iip_arglists = (Tuple{T1, T2, T3, T4},
6363
Tuple{dualT1, dualT2, T3, T4},

0 commit comments

Comments
 (0)