Skip to content

Commit

Permalink
Compile fix for Fuchsia (grpc#27432)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller authored Sep 22, 2021
1 parent 66ae0d5 commit a8592b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/lib/iomgr/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ static uint8_t get_placement(grpc_error_handle* err, size_t size) {
GPR_ASSERT(*err);
uint8_t slots = static_cast<uint8_t>(size / sizeof(intptr_t));
if ((*err)->arena_size + slots > (*err)->arena_capacity) {
(*err)->arena_capacity = static_cast<uint8_t>(
std::min(UINT8_MAX - 1, (3 * (*err)->arena_capacity / 2)));
(*err)->arena_capacity = static_cast<uint8_t>(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;
}
Expand Down

0 comments on commit a8592b0

Please sign in to comment.