summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/SwapByteOrderTest.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-10-11 22:04:38 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-10-11 22:04:38 +0000
commitb28ce01e34ad8fe7301080a72a0c41513ab5cdd8 (patch)
tree42feb13a2795d25a79744af7691f20eca1e4a53f /llvm/unittests/Support/SwapByteOrderTest.cpp
parent94ad008beb3768c0db4bbb5ab9befa6327b6db87 (diff)
downloadbcm5719-llvm-b28ce01e34ad8fe7301080a72a0c41513ab5cdd8.tar.gz
bcm5719-llvm-b28ce01e34ad8fe7301080a72a0c41513ab5cdd8.zip
Unit Tests: Missed this error. MSVC and clang didn't complain.
llvm-svn: 116252
Diffstat (limited to 'llvm/unittests/Support/SwapByteOrderTest.cpp')
-rw-r--r--llvm/unittests/Support/SwapByteOrderTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/Support/SwapByteOrderTest.cpp b/llvm/unittests/Support/SwapByteOrderTest.cpp
index ac7974e50aa..073824caa4b 100644
--- a/llvm/unittests/Support/SwapByteOrderTest.cpp
+++ b/llvm/unittests/Support/SwapByteOrderTest.cpp
@@ -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));
}
}
OpenPOWER on IntegriCloud