diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
commit | d8b215486245e84e33283b6047fb253bbb418e00 (patch) | |
tree | 4c07a4d3162a0390be0b55d619ddab0e7a6acb23 /src/upb_table.c | |
parent | f1e1cc4695b34b292454e903adbf09e66cf2e9d5 (diff) |
First version of an assembly language decoder.
It is slower than the C decoder for now because it
falls off the fast path too often. But it can
successfully decode varints, fixed32 and fixed64.
Diffstat (limited to 'src/upb_table.c')
-rw-r--r-- | src/upb_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_table.c b/src/upb_table.c index 9a6cf7a..d2cb5da 100644 --- a/src/upb_table.c +++ b/src/upb_table.c @@ -188,7 +188,7 @@ void upb_inttable_compact(upb_inttable *t) { while ((1UL << lg2_array) < largest_key) ++lg2_array; ++lg2_array; // Undo the first iteration. size_t array_size; - int array_count; + int array_count = 0; while (lg2_array > 0) { array_size = (1 << --lg2_array); //printf("Considering size %d (btw, our table has %d things total)\n", array_size, upb_inttable_count(t)); |