Skip to content

Commit 86b7ceb

Browse files
committed
Fix operator precedence.
1 parent a645ef7 commit 86b7ceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/thread/win32/thread_primitives.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace boost
102102
handle const res = ::boost::winapi::CreateEventExW(
103103
0,
104104
mutex_name,
105-
type ? create_event_manual_reset : 0 | state ? create_event_initial_set : 0,
105+
(type ? create_event_manual_reset : 0) | (state ? create_event_initial_set : 0),
106106
event_all_access);
107107
#endif
108108
return res;

0 commit comments

Comments
 (0)