| Index: tools/cygprofile/cygprofile_unittest.cc
|
| diff --git a/tools/cygprofile/cygprofile_unittest.cc b/tools/cygprofile/cygprofile_unittest.cc
|
| index 7a1a3e29090cde50e4facac371aaba77dd03e0d9..2022c03b462452f0ab2240c987ac742426f84eb6 100644
|
| --- a/tools/cygprofile/cygprofile_unittest.cc
|
| +++ b/tools/cygprofile/cygprofile_unittest.cc
|
| @@ -46,12 +46,12 @@ TEST(CygprofileTest, ThreadLogBasic) {
|
| ASSERT_EQ(2U, entries.size());
|
| // The entries should appear in their insertion order.
|
| const LogEntry& first_entry = entries[0];
|
| - ASSERT_EQ(reinterpret_cast<int>(first_entry.address), 2);
|
| + ASSERT_EQ(reinterpret_cast<uintptr_t>(first_entry.address), 2);
|
| ASSERT_EQ(getpid(), first_entry.pid);
|
| ASSERT_LT(0, first_entry.tid);
|
|
|
| const LogEntry& second_entry = entries[1];
|
| - ASSERT_EQ(1, reinterpret_cast<int>(second_entry.address));
|
| + ASSERT_EQ(1, reinterpret_cast<uintptr_t>(second_entry.address));
|
| ASSERT_EQ(first_entry.pid, second_entry.pid);
|
| ASSERT_EQ(first_entry.tid, second_entry.tid);
|
|
|
| @@ -87,8 +87,8 @@ TEST(CygprofileTest, ManagerBasic) {
|
|
|
| // The flush should have moved the data to the local vector of entries.
|
| EXPECT_EQ(2U, entries.size());
|
| - ASSERT_EQ(2, reinterpret_cast<int>(entries[0].address));
|
| - ASSERT_EQ(3, reinterpret_cast<int>(entries[1].address));
|
| + ASSERT_EQ(2, reinterpret_cast<uintptr_t>(entries[0].address));
|
| + ASSERT_EQ(3, reinterpret_cast<uintptr_t>(entries[1].address));
|
| }
|
|
|
| } // namespace
|
|
|