summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-02-12 19:53:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-02-12 19:53:49 +0000
commit193c94b459cefb5b94b8324ff817ced672ab8374 (patch)
treef5b931395dc60937864dce595ad9ad13c2a87849 /llvm/unittests/Support/MathExtrasTest.cpp
parenta07d9b9a4b9a51262cb413b2e726f5bfcdc5e8e6 (diff)
downloadbcm5719-llvm-193c94b459cefb5b94b8324ff817ced672ab8374.tar.gz
bcm5719-llvm-193c94b459cefb5b94b8324ff817ced672ab8374.zip
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. llvm-svn: 228950
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
-rw-r--r--llvm/unittests/Support/MathExtrasTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/MathExtrasTest.cpp b/llvm/unittests/Support/MathExtrasTest.cpp
index 9737393ee40..5c95b500dd4 100644
--- a/llvm/unittests/Support/MathExtrasTest.cpp
+++ b/llvm/unittests/Support/MathExtrasTest.cpp
@@ -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.
OpenPOWER on IntegriCloud