diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 4266d75f06..9a35f89026 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -1435,7 +1435,8 @@ static PGCPAGs(avc, afun, areq, ain, aout, ainSize, aoutSize, acred) memcpy((char *)&flag, ain, sizeof(afs_int32)); /* primary id flag */ ain += sizeof(afs_int32); /* skip id field */ /* rest is cell name, look it up */ - if (flag & 0x8000) { /* XXX Use Constant XXX */ + /* some versions of gcc appear to need != 0 in order to get this right */ + if (flag & 0x8000 != 0) { /* XXX Use Constant XXX */ flag &= ~0x8000; set_parent_pag = 1; }