aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-03 17:05:12 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-03 17:05:12 -0700
commit87c79795e6bc0047d22e9c5f638df832587f3418 (patch)
tree6ab6ecc7652620e2f8f3ac87080f2bc1bb28db38 /tools
parentf408784ae9c3aebb7c76ea66708ef985dc466be1 (diff)
Perform option exchange
Diffstat (limited to 'tools')
-rwxr-xr-xtools/codegen/core/gen_settings_ids.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/codegen/core/gen_settings_ids.py b/tools/codegen/core/gen_settings_ids.py
index c807f70c2a..54498a18f2 100755
--- a/tools/codegen/core/gen_settings_ids.py
+++ b/tools/codegen/core/gen_settings_ids.py
@@ -130,8 +130,8 @@ bool grpc_wire_id_to_setting_id(uint32_t wire_id, grpc_chttp2_setting_id *out) {
uint32_t delta = (uint32_t)r[y];
h += delta;
}
- *out = (grpc_chttp2_setting_id)i;
- return i < GPR_ARRAY_SIZE(grpc_setting_id_to_wire_id) && grpc_setting_id_to_wire_id[i] == wire_id;
+ *out = (grpc_chttp2_setting_id)h;
+ return h < GPR_ARRAY_SIZE(grpc_setting_id_to_wire_id) && grpc_setting_id_to_wire_id[h] == wire_id;
}""" % {
'r': ','.join('%d' % (r if r is not None else 0) for r in p.r),
't': p.t,