From 4bffb62289614d355bdb160822eff7213ec9bb62 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 13 Sep 2011 23:23:49 +0000 Subject: 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 --- unittests/Support/DataExtractorTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unittests') diff --git a/unittests/Support/DataExtractorTest.cpp b/unittests/Support/DataExtractorTest.cpp index 6de96c40c4..9813e465f7 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)); -- cgit v1.2.3-18-g5258