Skip to content

Commit d440864

Browse files
handle SLArray outputs
1 parent a16b696 commit d440864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build_function.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ function _build_function(target::JuliaTarget, rhss, args...;
332332
end
333333

334334
arr_sys_expr = !(typeof(rhss) <: SparseMatrixCSC || eltype(rhss) <: Number) ? quote
335-
if typeof($(fargs.args[1])) <: SArray
335+
convert(typeof($(fargs.args[1])),if typeof($(fargs.args[1])) <: Union{SArray,SLArray}
336336
@SArray $arr_sys_expr
337337
else
338338
$arr_sys_expr
339-
end
339+
end)
340340
end : arr_sys_expr
341341

342342
let_expr = Expr(:let, var_eqs, tuple_sys_expr)

0 commit comments

Comments
 (0)