[llvm] r228950 - Try to fix the MSVC build.
Benjamin Kramer
benny.kra at googlemail.com
Thu Feb 12 11:53:50 PST 2015
Author: d0k
Date: Thu Feb 12 13:53:49 2015
New Revision: 228950
URL: http://llvm.org/viewvc/llvm-project?rev=228950&view=rev
Log:
Try to fix the MSVC build.
0xFFFFFFFFFFFFFFFFLL doesn't fit in a long long so it should have
type 'unsigned long long'. MSVC thinks it's a (signed) __int64.
Modified:
llvm/trunk/unittests/Support/MathExtrasTest.cpp
Modified: llvm/trunk/unittests/Support/MathExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/MathExtrasTest.cpp?rev=228950&r1=228949&r2=228950&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/MathExtrasTest.cpp (original)
+++ llvm/trunk/unittests/Support/MathExtrasTest.cpp Thu Feb 12 13:53:49 2015
@@ -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.
More information about the llvm-commits
mailing list