From e58d72009a5ea9428e41309c56bfe3f2ce7b8160 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Mon, 11 Oct 2010 22:04:38 +0000 Subject: [PATCH] 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 --- unittests/Support/SwapByteOrderTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/Support/SwapByteOrderTest.cpp b/unittests/Support/SwapByteOrderTest.cpp index ac7974e50aa..073824caa4b 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(0x8877665544332211)); + EXPECT_EQ(uint64_t(0x1122334455667788ULL), + sys::SwapByteOrder(0x8877665544332211ULL)); } TEST(SwapByteOrder, int8_t) { @@ -121,8 +121,8 @@ TEST(SwapByteOrder, int32_t) { } TEST(SwapByteOrder, int64_t) { - EXPECT_EQ(int64_t(0x1122334455667788), - sys::SwapByteOrder(0x8877665544332211)); + EXPECT_EQ(int64_t(0x1122334455667788LL), + sys::SwapByteOrder(0x8877665544332211LL)); } } -- 2.34.1