mirror of
https://github.com/boostorg/logic.git
synced 2025-06-26 20:41:34 +02:00
Compare commits
2 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
49b2bb7749 | |||
15b34d0bf4 |
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user