Try to fix the MSVC build.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Feb 2015 19:53:49 +0000 (19:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Feb 2015 19:53:49 +0000 (19:53 +0000)
0xFFFFFFFFFFFFFFFFLL doesn't fit in a long long so it should have
type 'unsigned long long'. MSVC thinks it's a (signed) __int64.

llvm-svn: 228950

llvm/unittests/Support/MathExtrasTest.cpp

index 9737393..5c95b50 100644 (file)
@@ -148,7 +148,7 @@ TEST(MathExtras, countLeadingOnes) {
   }
   for (int i = 62; i >= 0; --i) {
     // Start with all ones and unset some bit.
-    EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFLL ^ (1LL << i)));
+    EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i)));
   }
   for (int i = 30; i >= 0; --i) {
     // Start with all ones and unset some bit.