Skip to content

Commit 6ed6853

Browse files
committed
Address ldionne's review comments
1 parent 588b947 commit 6ed6853

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/include/bitset

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ protected:
220220

221221
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 void flip() _NOEXCEPT;
222222
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long to_ulong() const {
223-
return __to_ulong(_BoolConstant < _Size< sizeof(unsigned long) * CHAR_BIT>());
223+
return __to_ulong(_BoolConstant<_Size < sizeof(unsigned long) * CHAR_BIT>());
224224
}
225225
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long long to_ullong() const {
226-
return __to_ullong(_BoolConstant < _Size< sizeof(unsigned long long) * CHAR_BIT>());
226+
return __to_ullong(_BoolConstant<_Size < sizeof(unsigned long long) * CHAR_BIT>());
227227
}
228228

229229
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool all() const _NOEXCEPT;
@@ -287,11 +287,11 @@ inline _LIBCPP_HIDE_FROM_ABI void __bitset<_N_words, _Size>::__init(unsigned lon
287287
template <size_t _N_words, size_t _Size>
288288
inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long __v) _NOEXCEPT
289289
# ifndef _LIBCPP_CXX03_LANG
290-
# if (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 1
290+
# if __SIZEOF_LONG_LONG__ <= __SIZEOF_SIZE_T__
291291
: __first_{static_cast<__storage_type>(__v)}
292-
# elif (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 2
292+
# elif __SIZEOF_LONG_LONG__ <= 2 * __SIZEOF_SIZE_T__
293293
: __first_{static_cast<__storage_type>(__v), static_cast<__storage_type>(__v >> __bits_per_word)}
294-
# elif (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 4
294+
# elif __SIZEOF_LONG_LONG__ <= 4 * __SIZEOF_SIZE_T__
295295
# if _N_words == 2
296296
: __first_{static_cast<__storage_type>(__v), static_cast<__storage_type>(__v >> __bits_per_word)}
297297
# elif _N_words == 3

0 commit comments

Comments
 (0)