forked from OSchip/llvm-project
[libc++] NFC: Parenthesize expression to satisfy GCC 11
Otherwise it issues a -Werror=parentheses suggesting parentheses.
This commit is contained in:
parent
1055cb91b4
commit
73099e786a
|
@ -20,7 +20,7 @@ constexpr void check_round_trip(stride_counting_iterator<I> const& i, std::ptrdi
|
|||
template <std::random_access_iterator I>
|
||||
constexpr void check_round_trip(stride_counting_iterator<I> const& i, std::ptrdiff_t const n) {
|
||||
assert(i.stride_count() <= 1);
|
||||
assert(i.stride_displacement() == n < 0 ? -1 : 1);
|
||||
assert(i.stride_displacement() == (n < 0 ? -1 : 1));
|
||||
}
|
||||
|
||||
template <std::input_or_output_iterator I>
|
||||
|
|
Loading…
Reference in New Issue