From a8592b0a84f11e1fa5258ccef30be1ffa2453409 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 21 Sep 2021 20:00:48 -0700 Subject: [PATCH] Compile fix for Fuchsia (#27432) --- src/core/lib/iomgr/error.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/iomgr/error.cc b/src/core/lib/iomgr/error.cc index 8282e153f96..da33bec91e9 100644 --- a/src/core/lib/iomgr/error.cc +++ b/src/core/lib/iomgr/error.cc @@ -322,8 +322,8 @@ static uint8_t get_placement(grpc_error_handle* err, size_t size) { GPR_ASSERT(*err); uint8_t slots = static_cast(size / sizeof(intptr_t)); if ((*err)->arena_size + slots > (*err)->arena_capacity) { - (*err)->arena_capacity = static_cast( - std::min(UINT8_MAX - 1, (3 * (*err)->arena_capacity / 2))); + (*err)->arena_capacity = static_cast(std::min( + size_t(UINT8_MAX - 1), size_t(3 * (*err)->arena_capacity / 2))); if ((*err)->arena_size + slots > (*err)->arena_capacity) { return UINT8_MAX; }