aboutsummaryrefslogtreecommitdiff
path: root/unittests/Support/SwapByteOrderTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/SwapByteOrderTest.cpp')
-rw-r--r--unittests/Support/SwapByteOrderTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/Support/SwapByteOrderTest.cpp b/unittests/Support/SwapByteOrderTest.cpp
index ac7974e50a..073824caa4 100644
--- a/unittests/Support/SwapByteOrderTest.cpp
+++ b/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));
}
}