]> Repositorios git - scryer-prolog.git/commitdiff
check that F in needs_bracketing/2 is an atom
authorMark <[email protected]>
Fri, 30 Jun 2023 19:45:45 +0000 (13:45 -0600)
committerMark <[email protected]>
Fri, 30 Jun 2023 19:45:45 +0000 (13:45 -0600)
src/toplevel.pl

index 2cfe04f5acd16857879b7669e6349803f651777f..d9c1f5c4436fd18844bca606ab398830aea7b369 100644 (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),