From cf3b3ae4952699f9a8f29282507dcc4dfc236a3b Mon Sep 17 00:00:00 2001 From: n0rbed Date: Sun, 24 Mar 2024 00:02:27 +0200 Subject: [PATCH] fixed non-boolean comparison issue --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index 9477a9c09..8b427d0c7 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -306,7 +306,7 @@ julia> Symbolics.coeff(x^2 + y, x^2) function coeff(p, sym=nothing) p, sym = value(p), value(sym) - if sym == 1 + if isequal(sym, 1) sym = nothing end