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));