Skip to content

Commit 5b350a3

Browse files
committed
Address ldionne's review comments
1 parent a27472c commit 5b350a3

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
@@ -223,10 +223,10 @@ protected:
223223

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

232232
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool all() const _NOEXCEPT { return !__scan_bits(__bit_not()); }
@@ -321,11 +321,11 @@ inline _LIBCPP_HIDE_FROM_ABI void __bitset<_N_words, _Size>::__init(unsigned lon
321321
template <size_t _N_words, size_t _Size>
322322
inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long __v) _NOEXCEPT
323323
# ifndef _LIBCPP_CXX03_LANG
324-
# if (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 1
324+
# if __SIZEOF_LONG_LONG__ <= __SIZEOF_SIZE_T__
325325
: __first_{static_cast<__storage_type>(__v)}
326-
# elif (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 2
326+
# elif __SIZEOF_LONG_LONG__ <= 2 * __SIZEOF_SIZE_T__
327327
: __first_{static_cast<__storage_type>(__v), static_cast<__storage_type>(__v >> __bits_per_word)}
328-
# elif (__SIZEOF_LONG_LONG__ + __SIZEOF_SIZE_T__ - 1) / __SIZEOF_SIZE_T__ == 4
328+
# elif __SIZEOF_LONG_LONG__ <= 4 * __SIZEOF_SIZE_T__
329329
# if _N_words == 2
330330
: __first_{static_cast<__storage_type>(__v), static_cast<__storage_type>(__v >> __bits_per_word)}
331331
# elif _N_words == 3

0 commit comments

Comments
 (0)