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)
17
17
# Flatten tree
18
18
idxs = findall (x -> is_operation (x) && x. op === O. op, O. args)
19
19
if ! isempty (idxs)
20
- keep_idxs = eachindex (O. args) .∉ Ref (idxs)
20
+ keep_idxs = eachindex (O. args) .∉ (idxs, )
21
21
args = Vector{Expression}[O. args[i]. args for i in idxs]
22
22
push! (args, O. args[keep_idxs])
23
23
return Operation (O. op, vcat (args... ))
@@ -26,7 +26,7 @@ function _simplify_constants(O, shorten_tree = true)
26
26
# Collapse constants
27
27
idxs = findall (is_constant, O. args)
28
28
if length (idxs) > 1
29
- other_idxs = eachindex (O. args) .∉ Ref (idxs)
29
+ other_idxs = eachindex (O. args) .∉ (idxs, )
30
30
new_const = Constant (mapreduce (get, O. op, O. args[idxs]))
31
31
args = push! (O. args[other_idxs], new_const)
32
32
You can’t perform that action at this time.
0 commit comments