check that F in needs_bracketing/2 is an atom

This commit is contained in:
Mark
2023-06-30 13:45:45 -06:00
parent 1620824d3a
commit caf84a259e

View File

@@ -208,6 +208,7 @@ needs_bracketing(Value, Op) :-
nonvar(Value),
\+ integer(Value),
functor(Value, F, Arity),
atom(F),
current_op(FPrec, FSpec, F),
current_op(EqPrec, EqSpec, Op),
arity_specifier(Arity, FSpec),