summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/SwapByteOrderTest.cpp
diff options
context:
space:
mode:
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