Skip to content

Commit 8df86e5

Browse files
committed
fixes for term heads
1 parent e71d9e0 commit 8df86e5

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
@@ -441,7 +441,7 @@ setargs(t, args) = Term{symtype(t)}(operation(t), args)
441441
cdrargs(args) = setargs(t, cdr(args))
442442

443443
print_arg(io, x::Union{Complex, Rational}; paren=true) = print(io, "(", x, ")")
444-
isbinop(f) = istree(f) && Base.isbinaryoperator(nameof(operation(f)))
444+
isbinop(f) = istree(f) && !istree(operation(f)) && Base.isbinaryoperator(nameof(operation(f)))
445445
function print_arg(io, x; paren=false)
446446
if paren && isbinop(x)
447447
print(io, "(", x, ")")

0 commit comments

Comments
 (0)