Skip to content

Commit 9bdcba2

Browse files
committed
Consider possibility of sizeof(ULL) less than sizeof(size_t)
1 parent ba20928 commit 9bdcba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/bitset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long
287287
# endif
288288
{
289289
# ifdef _LIBCPP_CXX03_LANG
290-
__init(__v, integral_constant<bool, sizeof(unsigned long long) == sizeof(__storage_type)>());
290+
__init(__v, integral_constant<bool, sizeof(unsigned long long) <= sizeof(__storage_type)>());
291291
# endif
292292
}
293293

0 commit comments

Comments
 (0)