diff options
author | David Garcia Quintas <dgq@google.com> | 2015-10-03 15:57:09 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-10-03 15:57:09 -0700 |
commit | d76cdac17a394d5a4be882ef0474db605db0c950 (patch) | |
tree | d04e052c8c5684657d3b5e8785d59d6fa8a46c1b /src/core/transport | |
parent | f8460df564385af2197ffccb4d4004fd96d0eddd (diff) |
Type conversion fixes to make GCC 5.2.0 happy
Diffstat (limited to 'src/core/transport')
-rw-r--r-- | src/core/transport/chttp2/bin_encoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/transport/chttp2/bin_encoder.c b/src/core/transport/chttp2/bin_encoder.c index f1bbf9aa91..b0b04f697a 100644 --- a/src/core/transport/chttp2/bin_encoder.c +++ b/src/core/transport/chttp2/bin_encoder.c @@ -185,8 +185,8 @@ gpr_slice grpc_chttp2_huffman_compress(gpr_slice input) { } if (temp_length) { - *out++ = (gpr_uint8)(temp << (8u - temp_length)) | - (gpr_uint8)(0xffu >> temp_length); + *out++ = (gpr_uint8)((gpr_uint8)(temp << (8u - temp_length)) | + (gpr_uint8)(0xffu >> temp_length)); } GPR_ASSERT(out == GPR_SLICE_END_PTR(output)); @@ -265,8 +265,8 @@ gpr_slice grpc_chttp2_base64_encode_and_huffman_compress(gpr_slice input) { } if (out.temp_length) { - *out.out++ = (gpr_uint8)(out.temp << (8u - out.temp_length)) | - (gpr_uint8)(0xffu >> out.temp_length); + *out.out++ = (gpr_uint8)((gpr_uint8)(out.temp << (8u - out.temp_length)) | + (gpr_uint8)(0xffu >> out.temp_length)); } GPR_ASSERT(out.out <= GPR_SLICE_END_PTR(output)); |