[libc++][test] fix C4267 warning in bitset.members\to_ulong.pass.cpp

Reviewed By: philnik

Differential Revision: https://reviews.llvm.org/D131854
This commit is contained in:
Igor Zhukov 2022-08-14 17:33:15 +07:00
parent b3452c95c6
commit 0c90d5f7e9
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ TEST_CONSTEXPR_CXX23 void test_to_ulong() {
std::min(max, max-1),
max
};
for (unsigned long j : tests) {
std::bitset<N> v(j);
for (std::size_t j : tests) {
std::bitset<N> v(j);
assert(j == v.to_ulong());
}