Skip to content

Commit f0b1a0c

Browse files
fix type check
1 parent f29ec53 commit f0b1a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function build_function(rhss, vs, ps = (), args = (), conv = simplified_expr, ex
8888
oop_ex = :(
8989
($(fargs.args...),) -> begin
9090
# If u is a weird non-StaticArray type and we want a sparse matrix, just do the optimized sparse anyways
91-
if $(fargs.args[1]) isa Array || (!($(fargs.args[1]) <: StaticArray) && $(rhss isa SparseMatrixCSC))
91+
if $(fargs.args[1]) isa Array || (!(typeof($(fargs.args[1])) <: StaticArray) && $(rhss isa SparseMatrixCSC))
9292
return $arr_bounds_block
9393
else
9494
X = $bounds_block

0 commit comments

Comments
 (0)