Skip to content

Commit 6ae4022

Browse files
committed
only real coeffs can be checked in isnegative
1 parent dbc4e33 commit 6ae4022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ const show_simplified = Ref(false)
347347

348348
Base.show(io::IO, t::Term) = show_term(io, t)
349349

350-
isnegative(t::Number) = t < 0
350+
isnegative(t::Real) = t < 0
351351
function isnegative(t)
352352
if istree(t) && operation(t) === (*)
353353
coeff = first(arguments(t))

0 commit comments

Comments
 (0)