forked from OSchip/llvm-project
[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:
parent
b3452c95c6
commit
0c90d5f7e9
|
@ -33,8 +33,8 @@ TEST_CONSTEXPR_CXX23 void test_to_ulong() {
|
||||||
std::min(max, max-1),
|
std::min(max, max-1),
|
||||||
max
|
max
|
||||||
};
|
};
|
||||||
for (unsigned long j : tests) {
|
for (std::size_t j : tests) {
|
||||||
std::bitset<N> v(j);
|
std::bitset<N> v(j);
|
||||||
assert(j == v.to_ulong());
|
assert(j == v.to_ulong());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue