Quell g++ 4.3 warning about operator ambiguity

This commit is contained in:
Nathan Binkert 2009-02-06 20:55:50 -08:00
parent 64eb0dc9cd
commit e1798d063e

View file

@ -1074,7 +1074,7 @@ let {{
// Fall through on purpose
case SegIntGateCheck:
// Make sure the gate's the right type.
if (m5reg.mode == LongMode && ((desc.type & 0xe) != 0xe) ||
if ((m5reg.mode == LongMode && (desc.type & 0xe) != 0xe) ||
((desc.type & 0x6) != 0x6)) {
fault = new GeneralProtection(0);
}