File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function _simplify_constants(O, shorten_tree = true)
1717 # Flatten tree
1818 idxs = findall (x -> is_operation (x) && x. op === O. op, O. args)
1919 if ! isempty (idxs)
20- keep_idxs = eachindex (O. args) .∉ Ref (idxs)
20+ keep_idxs = eachindex (O. args) .∉ (idxs, )
2121 args = Vector{Expression}[O. args[i]. args for i in idxs]
2222 push! (args, O. args[keep_idxs])
2323 return Operation (O. op, vcat (args... ))
@@ -26,7 +26,7 @@ function _simplify_constants(O, shorten_tree = true)
2626 # Collapse constants
2727 idxs = findall (is_constant, O. args)
2828 if length (idxs) > 1
29- other_idxs = eachindex (O. args) .∉ Ref (idxs)
29+ other_idxs = eachindex (O. args) .∉ (idxs, )
3030 new_const = Constant (mapreduce (get, O. op, O. args[idxs]))
3131 args = push! (O. args[other_idxs], new_const)
3232
You can’t perform that action at this time.
0 commit comments