summaryrefslogtreecommitdiff
path: root/core/upb_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb_table.c')
-rw-r--r--core/upb_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/upb_table.c b/core/upb_table.c
index b860204..a6e0a56 100644
--- a/core/upb_table.c
+++ b/core/upb_table.c
@@ -28,7 +28,7 @@ void upb_table_init(upb_table *t, uint32_t size, uint16_t entry_size)
{
t->count = 0;
t->entry_size = entry_size;
- t->size_lg2 = 1;
+ t->size_lg2 = 0;
while(size >>= 1) t->size_lg2++;
size_t bytes = upb_table_size(t) * t->entry_size;
t->mask = upb_table_size(t) - 1;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback