Unit Tests: Missed this error. MSVC and clang didn't complain.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 11 Oct 2010 22:04:38 +0000 (22:04 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 11 Oct 2010 22:04:38 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116252 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/SwapByteOrderTest.cpp

index ac7974e50aa2ecc82a8c9eec1620a24b4ed990ac..073824caa4b231f2a1396f2b2b9592d2c1d5c4f1 100644 (file)
@@ -104,8 +104,8 @@ TEST(SwapByteOrder, uint32_t) {
 }
 
 TEST(SwapByteOrder, uint64_t) {
-  EXPECT_EQ(uint64_t(0x1122334455667788),
-    sys::SwapByteOrder<uint64_t>(0x8877665544332211));
+  EXPECT_EQ(uint64_t(0x1122334455667788ULL),
+    sys::SwapByteOrder<uint64_t>(0x8877665544332211ULL));
 }
 
 TEST(SwapByteOrder, int8_t) {
@@ -121,8 +121,8 @@ TEST(SwapByteOrder, int32_t) {
 }
 
 TEST(SwapByteOrder, int64_t) {
-  EXPECT_EQ(int64_t(0x1122334455667788),
-    sys::SwapByteOrder<int64_t>(0x8877665544332211));
+  EXPECT_EQ(int64_t(0x1122334455667788LL),
+    sys::SwapByteOrder<int64_t>(0x8877665544332211LL));
 }
 
 }