build warning

..\src\invent.c(931) : warning C4554: '^' : check operator precedence
for possible error; use parentheses to clarify precedence
This commit is contained in:
nethack.allison
2006-12-14 03:41:30 +00:00
parent c5d80edf8a
commit 6c00f126da

View File

@@ -928,7 +928,7 @@ register const char *let,*word;
/* suppress corpses on astral, amulets elsewhere */
|| (!strcmp(word, "sacrifice") &&
/* (!astral && amulet) || (astral && !amulet) */
(!Is_astralevel(&u.uz) ^ otmp->oclass != AMULET_CLASS))
(!Is_astralevel(&u.uz) ^ (otmp->oclass != AMULET_CLASS)))
) {
/* acceptable but not listed as likely candidate */
foo--;