summaryrefslogtreecommitdiffstats
path: root/libcxx/include/future
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/future')
-rw-r--r--libcxx/include/future2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/future b/libcxx/include/future
index 160114e5901..dae1a4b805e 100644
--- a/libcxx/include/future
+++ b/libcxx/include/future
@@ -443,7 +443,7 @@ _LIBCPP_CONSTEXPR
launch
operator~(launch __x)
{
- return static_cast<launch>(~static_cast<__launch_underlying_type>(__x));
+ return static_cast<launch>(~static_cast<__launch_underlying_type>(__x) & 3);
}
inline _LIBCPP_INLINE_VISIBILITY
OpenPOWER on IntegriCloud