Fix cast to avoid potential wraparound

pull/6786/head
Craig Tiller 9 years ago
parent 8d8f9a891b
commit 139098c188
  1. 4
      src/core/lib/transport/metadata.c

@ -507,8 +507,8 @@ static void grow_mdtab(mdtab_shard *shard) {
}
static void rehash_mdtab(mdtab_shard *shard) {
if ((size_t)gpr_atm_no_barrier_load(&shard->free_estimate) >
shard->capacity / 4) {
if (gpr_atm_no_barrier_load(&shard->free_estimate) >
(gpr_atm)(shard->capacity / 4)) {
gc_mdtab(shard);
} else {
grow_mdtab(shard);

Loading…
Cancel
Save