aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport/chttp2/varint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/transport/chttp2/varint.h')
-rw-r--r--src/core/transport/chttp2/varint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/varint.h b/src/core/transport/chttp2/varint.h
index 37856913f8..4dfcc76773 100644
--- a/src/core/transport/chttp2/varint.h
+++ b/src/core/transport/chttp2/varint.h
@@ -63,7 +63,7 @@ void grpc_chttp2_hpack_write_varint_tail(gpr_uint32 tail_value,
do { \
gpr_uint8* tgt = target; \
if ((length) == 1u) { \
- (tgt)[0] = (prefix_or) | (n); \
+ (tgt)[0] = (gpr_uint8)((prefix_or) | (n)); \
} else { \
(tgt)[0] = (prefix_or) | GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits); \
grpc_chttp2_hpack_write_varint_tail( \