diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-11-10 14:10:00 +0000 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-11-10 14:10:00 +0000 |
commit | 1481237f2cd840f7673c304a697b5898c0cdca3c (patch) | |
tree | 9faf81454cb03f7be77e7780e93dae85d53b6ff7 /src/core/transport/chttp2 | |
parent | 895f14d38176bca1a4146e9d0fb6d80f40647545 (diff) |
Add missing casts
Diffstat (limited to 'src/core/transport/chttp2')
-rw-r--r-- | src/core/transport/chttp2/hpack_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/transport/chttp2/hpack_table.c b/src/core/transport/chttp2/hpack_table.c index e7cec99be1..a94fdb994d 100644 --- a/src/core/transport/chttp2/hpack_table.c +++ b/src/core/transport/chttp2/hpack_table.c @@ -226,7 +226,7 @@ static void evict1(grpc_chttp2_hptbl *tbl) { GPR_SLICE_LENGTH(first_ent->value->slice) + GRPC_CHTTP2_HPACK_ENTRY_OVERHEAD; GPR_ASSERT(elem_bytes <= tbl->mem_used); - tbl->mem_used -= elem_bytes; + tbl->mem_used -= (gpr_uint32)elem_bytes; tbl->first_ent = ((tbl->first_ent + 1) % tbl->cap_entries); tbl->num_ents--; @@ -322,7 +322,7 @@ int grpc_chttp2_hptbl_add(grpc_chttp2_hptbl *tbl, grpc_mdelem *md) { tbl->last_ent = ((tbl->last_ent + 1) % tbl->cap_entries); tbl->num_ents++; - tbl->mem_used += elem_bytes; + tbl->mem_used += (gpr_uint32)elem_bytes; return 1; } |