From 88eee8b5111230cd85c712e2cd465cae3ec84064 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 21 Oct 2022 05:42:58 -0700 Subject: [PATCH] Fix sign conversion warnings in memory_test.cc. Bug: chromium:1292951 PiperOrigin-RevId: 482767615 Change-Id: Ia1e812fa7bde8753b17046ed325542ad41f30f9b --- absl/memory/memory_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/absl/memory/memory_test.cc b/absl/memory/memory_test.cc index 5d5719b3..8ac856b1 100644 --- a/absl/memory/memory_test.cc +++ b/absl/memory/memory_test.cc @@ -600,7 +600,7 @@ TEST(AllocatorTraits, FunctionsFull) { EXPECT_CALL(mock, allocate(13, &hint)).WillRepeatedly(Return(&y)); EXPECT_CALL(mock, construct(&x, &trace)); EXPECT_CALL(mock, destroy(&x)); - EXPECT_CALL(mock, max_size()).WillRepeatedly(Return(17)); + EXPECT_CALL(mock, max_size()).WillRepeatedly(Return(17u)); EXPECT_CALL(mock, select_on_container_copy_construction()) .WillRepeatedly(Return(FullMockAllocator(23))); @@ -613,7 +613,7 @@ TEST(AllocatorTraits, FunctionsFull) { Traits::destroy(mock, &x); EXPECT_EQ(1, trace); - EXPECT_EQ(17, Traits::max_size(mock)); + EXPECT_EQ(17u, Traits::max_size(mock)); EXPECT_EQ(0, mock.value); EXPECT_EQ(23, Traits::select_on_container_copy_construction(mock).value);