aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-11 08:52:59 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-11 08:52:59 -0700
commit0b4e263fdf5d4be817f1ad7b93a0b7328aff97f1 (patch)
treebfcf165cbf3c733cfc4de804da92d3d7397eda91 /src/core/ext
parentb731178a7ccc1c6a0da26a410b71840d08ab37af (diff)
Small formatting and style changes
Diffstat (limited to 'src/core/ext')
-rw-r--r--src/core/ext/transport/chttp2/transport/hpack_encoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
index d0e65ddebd..9a5af3712d 100644
--- a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
+++ b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
@@ -690,7 +690,7 @@ void grpc_chttp2_encode_header(grpc_chttp2_hpack_compressor* c,
for (size_t i = 0; i < extra_headers_size; ++i) {
grpc_mdelem md = *extra_headers[i];
uint8_t static_index = GRPC_MDINDEX(md);
- if (static_index > 0) {
+ if (static_index != GRPC_MDINDEX_UNUSED) {
emit_indexed(c, static_index, &st);
} else {
hpack_enc(c, md, &st);
@@ -699,7 +699,7 @@ void grpc_chttp2_encode_header(grpc_chttp2_hpack_compressor* c,
grpc_metadata_batch_assert_ok(metadata);
for (grpc_linked_mdelem* l = metadata->list.head; l; l = l->next) {
uint8_t static_index = GRPC_MDINDEX(l->md);
- if (static_index > 0) {
+ if (static_index != GRPC_MDINDEX_UNUSED) {
emit_indexed(c, static_index, &st);
} else {
hpack_enc(c, l->md, &st);