Skip to content

Commit 9cc6f21

Browse files
authored
Drive by: Fix conditional (#1372)
1 parent 6b8c7ab commit 9cc6f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function tearing_reassemble(sys; simplify=false)
107107
neweqs[ridx] = eq.lhs ~ tearing_sub(eq.rhs, dict, simplify)
108108
else
109109
newalgeqs[ridx] = true
110-
if !(eq.lhs isa Number && eq.lhs != 0)
110+
if !(eq.lhs isa Number && eq.lhs == 0)
111111
eq = 0 ~ eq.rhs - eq.lhs
112112
end
113113
rhs = tearing_sub(eq.rhs, dict, simplify)

0 commit comments

Comments
 (0)