be less enthusiastsis about writing (op).

This commit is contained in:
Vitor Santos Costa
2010-02-26 14:14:10 +00:00
parent b4481ca98c
commit 5778730b62
3 changed files with 19 additions and 2 deletions

View File

@@ -214,12 +214,12 @@ legalAtom(unsigned char *s) /* Is this a legal atom ? */
static int LeftOpToProtect(Atom at, int p)
{
return Yap_IsOp(at);
return Yap_IsOpMaxPrio(at) > p;
}
static int RightOpToProtect(Atom at, int p)
{
return Yap_IsOp(at);
return Yap_IsOpMaxPrio(at) > p;
}
static wtype