From 2c5c3fdc25c586c1eee987f1c4181b5eee0732ec Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Jul 2009 21:40:10 -0700 Subject: More tests and fixes. --- upb_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'upb_table.c') diff --git a/upb_table.c b/upb_table.c index e572dd1..75fa266 100644 --- a/upb_table.c +++ b/upb_table.c @@ -192,7 +192,7 @@ void upb_strtable_insert(struct upb_strtable *t, struct upb_strtable_entry *e) } void *upb_inttable_begin(struct upb_inttable *t) { - return upb_inttable_next(t, intent(t, -1)); + return upb_inttable_next(t, intent(t, 0)); } void *upb_inttable_next(struct upb_inttable *t, struct upb_inttable_entry *cur) { @@ -205,7 +205,7 @@ void *upb_inttable_next(struct upb_inttable *t, struct upb_inttable_entry *cur) } void *upb_strtable_begin(struct upb_strtable *t) { - return upb_strtable_next(t, strent(t, -1)); + return upb_strtable_next(t, strent(t, 0)); } void *upb_strtable_next(struct upb_strtable *t, struct upb_strtable_entry *cur) { -- cgit v1.2.3