Skip to content

Commit 796899e

Browse files
fixup! fix: improve type-stability of alias elimination
1 parent f1b8c49 commit 796899e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/alias_elimination.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function alias_elimination!(state::TearingState; kwargs...)
6464
resize!(eqs, nsrcs(graph))
6565

6666
__trivial_eq_rhs = let fullvars = fullvars
67-
function trivial_eq_rhs(var, coeff)
67+
function trivial_eq_rhs(pair)
68+
var, coeff = pair
6869
iszero(coeff) && return Symbolics.COMMON_ZERO
6970
return coeff * fullvars[var]
7071
end

0 commit comments

Comments
 (0)