Skip to content

Commit 2113cab

Browse files
Fix v0.7 compatibility
1 parent fc21d66 commit 2113cab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simplify.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)