[llvm-commits] [llvm] r116252 - /llvm/trunk/unittests/Support/SwapByteOrderTest.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Mon Oct 11 15:04:38 PDT 2010
Author: mspencer
Date: Mon Oct 11 17:04:38 2010
New Revision: 116252
URL: http://llvm.org/viewvc/llvm-project?rev=116252&view=rev
Log:
Unit Tests: Missed this error. MSVC and clang didn't complain.
Modified:
llvm/trunk/unittests/Support/SwapByteOrderTest.cpp
Modified: llvm/trunk/unittests/Support/SwapByteOrderTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/SwapByteOrderTest.cpp?rev=116252&r1=116251&r2=116252&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/SwapByteOrderTest.cpp (original)
+++ llvm/trunk/unittests/Support/SwapByteOrderTest.cpp Mon Oct 11 17:04:38 2010
@@ -104,8 +104,8 @@
}
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, int64_t) {
- EXPECT_EQ(int64_t(0x1122334455667788),
- sys::SwapByteOrder<int64_t>(0x8877665544332211));
+ EXPECT_EQ(int64_t(0x1122334455667788LL),
+ sys::SwapByteOrder<int64_t>(0x8877665544332211LL));
}
}
More information about the llvm-commits
mailing list