Compile fix for Fuchsia (#27432)

pull/27438/head
Craig Tiller 3 years ago committed by GitHub
parent 66ae0d5c08
commit a8592b0a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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<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;
}

Loading…
Cancel
Save