diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-09-13 23:23:49 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-09-13 23:23:49 +0000 |
commit | 0378726aed7c232f2848bccb44cf9705fc69266b (patch) | |
tree | 102651a2eb3490cce1089f71210eace24e485afe /llvm/unittests/Support/DataExtractorTest.cpp | |
parent | 3728ea75d9c5cf9c7228c57a2bac916848c40e03 (diff) | |
download | bcm5719-llvm-0378726aed7c232f2848bccb44cf9705fc69266b.tar.gz bcm5719-llvm-0378726aed7c232f2848bccb44cf9705fc69266b.zip |
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.
llvm-svn: 139664
Diffstat (limited to 'llvm/unittests/Support/DataExtractorTest.cpp')
-rw-r--r-- | llvm/unittests/Support/DataExtractorTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/DataExtractorTest.cpp b/llvm/unittests/Support/DataExtractorTest.cpp index 6de96c40c40..9813e465f7e 100644 --- a/llvm/unittests/Support/DataExtractorTest.cpp +++ b/llvm/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)); |