From 6c00f126daed1778333f1c3dee2b3b7f45f0e20e Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Thu, 14 Dec 2006 03:41:30 +0000 Subject: [PATCH] build warning ..\src\invent.c(931) : warning C4554: '^' : check operator precedence for possible error; use parentheses to clarify precedence --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index 647eaf5b4..2764547b7 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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--;