aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/codegen
diff options
context:
space:
mode:
authorGravatar Flavio Medeiros <flaviomotamedeiros@gmail.com>2017-09-02 13:48:31 -0300
committerGravatar Craig Tiller <ctiller@google.com>2017-09-02 10:24:01 -0700
commit89e68acb5044ed3b6e19e0e41874abb24cfb1f49 (patch)
tree43ea917c2fd148dabe813ca21b460ece013894df /tools/codegen
parentf5600e99be0fdcada4b3039c0f656a305264884a (diff)
Trying to make the code more readable.
Diffstat (limited to 'tools/codegen')
-rw-r--r--tools/codegen/core/gen_hpack_tables.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/codegen/core/gen_hpack_tables.c b/tools/codegen/core/gen_hpack_tables.c
index 858ae20c2d..73dfa9fbd6 100644
--- a/tools/codegen/core/gen_hpack_tables.c
+++ b/tools/codegen/core/gen_hpack_tables.c
@@ -189,7 +189,10 @@ static unsigned state_index(unsigned bitofs, symset syms, unsigned *isnew) {
return i;
}
GPR_ASSERT(nhuffstates != MAXHUFFSTATES);
- i = nhuffstates++;
+
+ i = nhuffstates;
+ nhuffstates++;
+
huffstates[i].bitofs = bitofs;
huffstates[i].syms = syms;
huffstates[i].next = nibblelut_empty();