summaryrefslogtreecommitdiff
path: root/upb_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb_table.c')
-rw-r--r--upb_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb_table.c b/upb_table.c
index 75fa266..1edf676 100644
--- a/upb_table.c
+++ b/upb_table.c
@@ -173,6 +173,7 @@ static void strinsert(struct upb_strtable *t, struct upb_strtable_entry *e)
}
memcpy(table_e, e, t->t.entry_size);
table_e->next = UPB_END_OF_CHAIN;
+ assert(upb_strtable_lookup(t, &e->key) == table_e);
}
void upb_strtable_insert(struct upb_strtable *t, struct upb_strtable_entry *e)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback