From b554ce57f4eee4ee14fdc5868190bf03aeaa437e Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 10 Feb 2016 19:11:15 +0000 Subject: [PATCH] Silence some MSVC warnings about zero extending unsigned to void* llvm-svn: 260413 --- unittests/Support/raw_ostream_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/Support/raw_ostream_test.cpp b/unittests/Support/raw_ostream_test.cpp index ff986025b2c..ed6ddabe463 100644 --- a/unittests/Support/raw_ostream_test.cpp +++ b/unittests/Support/raw_ostream_test.cpp @@ -70,8 +70,8 @@ TEST(raw_ostreamTest, Types_Buffered) { // void* EXPECT_EQ("0x0", printToString((void*) nullptr)); - EXPECT_EQ("0xbeef", printToString((void*) 0xbeef)); - EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeef)); + EXPECT_EQ("0xbeef", printToString((void*) 0xbeefLL)); + EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeefLL)); // Min and max. EXPECT_EQ("18446744073709551615", printToString(UINT64_MAX)); @@ -101,8 +101,8 @@ TEST(raw_ostreamTest, Types_Unbuffered) { // void* EXPECT_EQ("0x0", printToStringUnbuffered((void*) nullptr)); - EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeef)); - EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeef)); + EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeefLL)); + EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeefLL)); // Min and max. EXPECT_EQ("18446744073709551615", printToStringUnbuffered(UINT64_MAX));