From d8b215486245e84e33283b6047fb253bbb418e00 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 17 Feb 2011 23:07:17 -0800 Subject: 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. --- src/upb_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_table.c') 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)); -- cgit v1.2.3