Skip to content

Commit 0eb607d

Browse files
committed
Add more parentheses for MSVC
1 parent e184100 commit 0eb607d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/oup/observable_unique_ptr.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ class basic_control_block final {
201201
static constexpr control_block_storage_type get_highest_bit_mask() {
202202
// NB: This is put in a function to avoid a spurious MSVC warning.
203203
return static_cast<control_block_storage_type>(1)
204-
<< static_cast<control_block_storage_type>(
205-
sizeof(control_block_storage_type) * 8 - 1);
204+
<< (static_cast<control_block_storage_type>(
205+
sizeof(control_block_storage_type) * 8 - 1));
206206
}
207207

208208
static constexpr control_block_storage_type highest_bit_mask = get_highest_bit_mask();

0 commit comments

Comments
 (0)