From 8b3146096fe9e9efd849d6ee5e0fa6e90274b796 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 Dec 2017 11:01:47 +0200 Subject: Fix bug in relaxed_atomic --- build2/types.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& x, const P& y) { - return static_cast (x) == y; + return static_cast (x) != y; } #endif -- cgit v1.1