|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2007-10-22 15:37:05
Author: dgregor
Date: 2007-10-22 15:37:05 EDT (Mon, 22 Oct 2007)
New Revision: 40299
URL: http://svn.boost.org/trac/boost/changeset/40299
Log:
Fix warnings from GCC 4.3. Fixes #1337
Text files modified:
trunk/boost/logic/tribool.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/logic/tribool.hpp
==============================================================================
--- trunk/boost/logic/tribool.hpp (original)
+++ trunk/boost/logic/tribool.hpp 2007-10-22 15:37:05 EDT (Mon, 22 Oct 2007)
@@ -336,7 +336,7 @@
if (indeterminate(x) || indeterminate(y))
return indeterminate;
else
- return x && y || !x && !y;
+ return (x && y) || (!x && !y);
}
/**
@@ -399,7 +399,7 @@
if (indeterminate(x) || indeterminate(y))
return indeterminate;
else
- return !(x && y || !x && !y);
+ return !((x && y) || (!x && !y));
}
/**
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk