aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-09-13 23:23:49 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-09-13 23:23:49 +0000
commit4bffb62289614d355bdb160822eff7213ec9bb62 (patch)
tree361268598a2e5850dcaa46a31714a68dd489de87 /unittests
parent393bfcb263fa46e4badc73c6aa56306986f94dcf (diff)
downloadexternal_llvm-4bffb62289614d355bdb160822eff7213ec9bb62.zip
external_llvm-4bffb62289614d355bdb160822eff7213ec9bb62.tar.gz
external_llvm-4bffb62289614d355bdb160822eff7213ec9bb62.tar.bz2
unittests/Support/DataExtractorTest.cpp: Specify ULL explicitly to a few constants.
It seems i686-cygwin-gcc-4.3 does not accept 64-bit constant without LL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/DataExtractorTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Support/DataExtractorTest.cpp b/unittests/Support/DataExtractorTest.cpp
index 6de96c4..9813e46 100644
--- a/unittests/Support/DataExtractorTest.cpp
+++ b/unittests/Support/DataExtractorTest.cpp
@@ -35,10 +35,10 @@ TEST(DataExtractorTest, UnsignedNumbers) {
EXPECT_EQ(0x8090FFFFU, DE.getU32(&offset));
EXPECT_EQ(4U, offset);
offset = 0;
- EXPECT_EQ(0x8090FFFF80000000U, DE.getU64(&offset));
+ EXPECT_EQ(0x8090FFFF80000000ULL, DE.getU64(&offset));
EXPECT_EQ(8U, offset);
offset = 0;
- EXPECT_EQ(0x8090FFFF80000000U, DE.getAddress(&offset));
+ EXPECT_EQ(0x8090FFFF80000000ULL, DE.getAddress(&offset));
EXPECT_EQ(8U, offset);
offset = 0;
@@ -57,7 +57,7 @@ TEST(DataExtractorTest, UnsignedNumbers) {
EXPECT_EQ(0xFFFF9080U, DE.getU32(&offset));
EXPECT_EQ(4U, offset);
offset = 0;
- EXPECT_EQ(0x80FFFF9080U, DE.getU64(&offset));
+ EXPECT_EQ(0x80FFFF9080ULL, DE.getU64(&offset));
EXPECT_EQ(8U, offset);
offset = 0;
EXPECT_EQ(0xFFFF9080U, DE.getAddress(&offset));