aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-06-01 22:29:41 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-06-01 22:29:41 +0000
commit44dbb749f0917d69e9dfaf6e39224349b680dfc2 (patch)
treed966c9ed78ab24b1ec28d41829858ec7aaa1105f
parente4546cb71e14baa0cde8f85a12cfa8b2d44fe708 (diff)
downloadexternal_llvm-44dbb749f0917d69e9dfaf6e39224349b680dfc2.zip
external_llvm-44dbb749f0917d69e9dfaf6e39224349b680dfc2.tar.gz
external_llvm-44dbb749f0917d69e9dfaf6e39224349b680dfc2.tar.bz2
Try to avoid "integer literal too big" warnings from older GCCs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183081 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/ADT/APFloatTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/unittests/ADT/APFloatTest.cpp b/unittests/ADT/APFloatTest.cpp
index 72403f4..14e9915 100644
--- a/unittests/ADT/APFloatTest.cpp
+++ b/unittests/ADT/APFloatTest.cpp
@@ -1280,19 +1280,19 @@ TEST(APFloatTest, getZero) {
const bool sign;
const unsigned long long bitPattern[2];
const unsigned bitPatternLength;
- } GetZeroTest[] = {
+ } const GetZeroTest[] = {
{ &APFloat::IEEEhalf, false, {0, 0}, 1},
- { &APFloat::IEEEhalf, true, {0x8000, 0}, 1},
+ { &APFloat::IEEEhalf, true, {0x8000ULL, 0}, 1},
{ &APFloat::IEEEsingle, false, {0, 0}, 1},
- { &APFloat::IEEEsingle, true, {0x80000000, 0}, 1},
+ { &APFloat::IEEEsingle, true, {0x80000000ULL, 0}, 1},
{ &APFloat::IEEEdouble, false, {0, 0}, 1},
- { &APFloat::IEEEdouble, true, {0x8000000000000000, 0}, 1},
+ { &APFloat::IEEEdouble, true, {0x8000000000000000ULL, 0}, 1},
{ &APFloat::IEEEquad, false, {0, 0}, 2},
- { &APFloat::IEEEquad, true, {0, 0x8000000000000000}, 2},
+ { &APFloat::IEEEquad, true, {0, 0x8000000000000000ULL}, 2},
{ &APFloat::PPCDoubleDouble, false, {0, 0}, 2},
- { &APFloat::PPCDoubleDouble, true, {0x8000000000000000, 0}, 2},
+ { &APFloat::PPCDoubleDouble, true, {0x8000000000000000ULL, 0}, 2},
{ &APFloat::x87DoubleExtended, false, {0, 0}, 2},
- { &APFloat::x87DoubleExtended, true, {0, 0x8000}, 2},
+ { &APFloat::x87DoubleExtended, true, {0, 0x8000ULL}, 2},
};
const unsigned NumGetZeroTests = 12;
for (unsigned i = 0; i < NumGetZeroTests; ++i) {