[llvm-commits] [llvm] r139664 - /llvm/trunk/unittests/Support/DataExtractorTest.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Tue Sep 13 16:23:49 PDT 2011
Author: chapuni
Date: Tue Sep 13 18:23:49 2011
New Revision: 139664
URL: http://llvm.org/viewvc/llvm-project?rev=139664&view=rev
Log:
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.
Modified:
llvm/trunk/unittests/Support/DataExtractorTest.cpp
Modified: llvm/trunk/unittests/Support/DataExtractorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/DataExtractorTest.cpp?rev=139664&r1=139663&r2=139664&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/DataExtractorTest.cpp (original)
+++ llvm/trunk/unittests/Support/DataExtractorTest.cpp Tue Sep 13 18:23:49 2011
@@ -35,10 +35,10 @@
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 @@
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));
More information about the llvm-commits
mailing list