We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce8ecb commit 3568e2aCopy full SHA for 3568e2a
libc/test/src/__support/CPP/bit_test.cpp
@@ -227,7 +227,7 @@ TEST(LlvmLibcBitTest, Rotr) {
227
TYPED_TEST(LlvmLibcBitTest, CountOnes, UnsignedTypes) {
228
EXPECT_EQ(popcount(T(0)), 0);
229
for (int i = 0; i != cpp::numeric_limits<T>::digits; ++i)
230
- EXPECT_EQ(popcount<T>(cpp::numeric_limits<T>::max() >> i),
+ EXPECT_EQ(popcount<T>(cpp::numeric_limits<T>::max() >> static_cast<size_t>(i)),
231
cpp::numeric_limits<T>::digits - i);
232
}
233
0 commit comments