[llvm] r260413 - Silence some MSVC warnings about zero extending unsigned to void*
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 11:11:15 PST 2016
Author: rnk
Date: Wed Feb 10 13:11:15 2016
New Revision: 260413
URL: http://llvm.org/viewvc/llvm-project?rev=260413&view=rev
Log:
Silence some MSVC warnings about zero extending unsigned to void*
Modified:
llvm/trunk/unittests/Support/raw_ostream_test.cpp
Modified: llvm/trunk/unittests/Support/raw_ostream_test.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/raw_ostream_test.cpp?rev=260413&r1=260412&r2=260413&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/raw_ostream_test.cpp (original)
+++ llvm/trunk/unittests/Support/raw_ostream_test.cpp Wed Feb 10 13:11:15 2016
@@ -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));
More information about the llvm-commits
mailing list