diff options
Diffstat (limited to 'include/future')
| -rw-r--r-- | include/future | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/future b/include/future index 2d969df1b..ff8e59b17 100644 --- a/include/future +++ b/include/future @@ -542,14 +542,14 @@ public: __state_ |= __future_attached; } _LIBCPP_INLINE_VISIBILITY - bool __has_future_attached() const {return __state_ & __future_attached;} + bool __has_future_attached() const {return (__state_ & __future_attached) != 0;} _LIBCPP_INLINE_VISIBILITY void __set_deferred() {__state_ |= deferred;} void __make_ready(); _LIBCPP_INLINE_VISIBILITY - bool __is_ready() const {return __state_ & ready;} + bool __is_ready() const {return (__state_ & ready) != 0;} void set_value(); void set_value_at_thread_exit(); |
