Fix warnings from GCC 4.3. Fixes #1337

[SVN r40299]
This commit is contained in:
Douglas Gregor
2007-10-22 19:37:05 +00:00
parent d1f46c8f98
commit 15b34d0bf4

View File

@@ -336,7 +336,7 @@ inline tribool operator==(tribool x, tribool y)
if (indeterminate(x) || indeterminate(y)) if (indeterminate(x) || indeterminate(y))
return indeterminate; return indeterminate;
else else
return x && y || !x && !y; return (x && y) || (!x && !y);
} }
/** /**
@@ -399,7 +399,7 @@ inline tribool operator!=(tribool x, tribool y)
if (indeterminate(x) || indeterminate(y)) if (indeterminate(x) || indeterminate(y))
return indeterminate; return indeterminate;
else else
return !(x && y || !x && !y); return !((x && y) || (!x && !y));
} }
/** /**