mirror of
https://github.com/boostorg/logic.git
synced 2025-06-26 20:41:34 +02:00
Compare commits
1 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
e96d747736 |
@ -336,7 +336,7 @@ inline tribool operator==(tribool x, tribool y)
|
||||
if (indeterminate(x) || indeterminate(y))
|
||||
return indeterminate;
|
||||
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))
|
||||
return indeterminate;
|
||||
else
|
||||
return !((x && y) || (!x && !y));
|
||||
return !(x && y || !x && !y);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user