Skip to content

Commit d4e4396

Browse files
refactor: improve type-stability of subexpressions_not_involving_vars!
1 parent 0d14c93 commit d4e4396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,8 @@ function subexpressions_not_involving_vars!(expr, vars, state::Dict{Any, Any})
978978
end
979979

980980
if (op == (+) || op == (*)) && symbolic_type(expr) !== ArraySymbolic()
981-
indep_args = []
982-
dep_args = []
981+
indep_args = SymbolicT[]
982+
dep_args = SymbolicT[]
983983
for arg in args
984984
_vs = SU.search_variables(arg)
985985
intersect!(_vs, vars)

0 commit comments

Comments
 (0)