diff options
author | Flavio Medeiros <flaviomotamedeiros@gmail.com> | 2017-09-02 13:48:31 -0300 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-02 10:24:01 -0700 |
commit | 89e68acb5044ed3b6e19e0e41874abb24cfb1f49 (patch) | |
tree | 43ea917c2fd148dabe813ca21b460ece013894df /tools/codegen | |
parent | f5600e99be0fdcada4b3039c0f656a305264884a (diff) |
Trying to make the code more readable.
Diffstat (limited to 'tools/codegen')
-rw-r--r-- | tools/codegen/core/gen_hpack_tables.c | 5 |
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(); |