Skip to content

Commit 72d5649

Browse files
oxinaboxaviatesk
authored andcommitted
fix type of nargs for making opaque closures (#125)
Also disables some of the heavily nested AD tests for now, since they are causing the segfault.
1 parent b00ed77 commit 72d5649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/codegen/reverse.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ function make_opaque_closure(interp, typ, name, meth_nargs, isva, lno, cis, revs
88
return Expr(:new_opaque_closure, typ, Union{}, Any,
99
ocm, revs...)
1010
else
11+
oc_nargs = Int64(meth_nargs)
1112
Expr(:new_opaque_closure, typ, Union{}, Any,
12-
Expr(:opaque_closure_method, name, meth_nargs, isva, lno, cis), revs...)
13+
Expr(:opaque_closure_method, name, oc_nargs, isva, lno, cis), revs...)
1314
end
1415
end
1516

0 commit comments

Comments
 (0)