diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-11 22:04:38 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-11 22:04:38 +0000 |
commit | e58d72009a5ea9428e41309c56bfe3f2ce7b8160 (patch) | |
tree | b3901c895d90124dd90af234d5eed1c46a20116a | |
parent | 60ff87914fcafd82fb123f03b17827ab7b2c3ab3 (diff) |
Unit Tests: Missed this error. MSVC and clang didn't complain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116252 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/Support/SwapByteOrderTest.cpp | 8 |
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)); } } |