aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-07 11:28:51 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-07 11:28:51 -0800
commit8ab91b29fee03fdf1856d37e146708020db8cc43 (patch)
tree1fc571a14352b0721f409281c625b1120b3c5f7c /src/core/transport
parent311af8e281bdb7b272cf15f72af5c2249d2c3727 (diff)
Add test of varint encoding for hpack
Diffstat (limited to 'src/core/transport')
-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 4dfcc76773..c252f45fc5 100644
--- a/src/core/transport/chttp2/varint.h
+++ b/src/core/transport/chttp2/varint.h
@@ -65,7 +65,7 @@ void grpc_chttp2_hpack_write_varint_tail(gpr_uint32 tail_value,
if ((length) == 1u) { \
(tgt)[0] = (gpr_uint8)((prefix_or) | (n)); \
} else { \
- (tgt)[0] = (prefix_or) | GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits); \
+ (tgt)[0] = (prefix_or) | (gpr_uint8)GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits); \
grpc_chttp2_hpack_write_varint_tail( \
(n)-GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits), (tgt) + 1, (length)-1); \
} \