summaryrefslogtreecommitdiff
path: root/absl/memory
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-10-21 05:42:58 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-10-21 05:44:04 -0700
commit88eee8b5111230cd85c712e2cd465cae3ec84064 (patch)
tree3ddf5a3a407d24cde23cc88a51417440344ea2bb /absl/memory
parent85cc4947dbec515868e47a7e4e2b604b21e333cb (diff)
Fix sign conversion warnings in memory_test.cc.
Bug: chromium:1292951 PiperOrigin-RevId: 482767615 Change-Id: Ia1e812fa7bde8753b17046ed325542ad41f30f9b
Diffstat (limited to 'absl/memory')
-rw-r--r--absl/memory/memory_test.cc4
1 files 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);