Skip to content

Commit

Permalink
Silence some MSVC warnings about zero extending unsigned to void*
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260413 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed Feb 10, 2016
1 parent bc947a0 commit 6f30639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/Support/raw_ostream_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 6f30639

Please sign in to comment.