aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-06 11:01:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-06 11:01:47 +0200
commit8b3146096fe9e9efd849d6ee5e0fa6e90274b796 (patch)
treecab30a39aaf9c30f039ea3ea6dd099a731de1490
parent6e197bdfcc680080bd18bcc3c612447472090841 (diff)
Fix bug in relaxed_atomic
-rw-r--r--build2/types.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/types.hxx b/build2/types.hxx
index 092318e..9ddc427 100644
--- a/build2/types.hxx
+++ b/build2/types.hxx
@@ -147,7 +147,7 @@ namespace build2
inline bool
operator!= (const relaxed_atomic<T*>& x, const P& y)
{
- return static_cast<T*> (x) == y;
+ return static_cast<T*> (x) != y;
}
#endif