Skip to content

Commit d578748

Browse files
committed
Consider possibility of sizeof(ULL) less than sizeof(size_t)
1 parent cf27e9f commit d578748

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
@@ -304,7 +304,7 @@ inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long
304304
# endif
305305
{
306306
# ifdef _LIBCPP_CXX03_LANG
307-
__init(__v, integral_constant<bool, sizeof(unsigned long long) == sizeof(__storage_type)>());
307+
__init(__v, integral_constant<bool, sizeof(unsigned long long) <= sizeof(__storage_type)>());
308308
# endif
309309
}
310310

0 commit comments

Comments
 (0)