From ec67a5ded6a3f9c77e265e1beb3efff9fd68aa32 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 24 Jun 2009 18:35:57 -0700 Subject: Implemented a bit more of upb_context. --- upb_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb_table.h') diff --git a/upb_table.h b/upb_table.h index 7565a52..4452fc9 100644 --- a/upb_table.h +++ b/upb_table.h @@ -94,7 +94,7 @@ INLINE void *upb_inttable_lookup(struct upb_inttable *t, uint32_t bucket = upb_inttable_bucket(t, key); struct upb_inttable_entry *e; do { - e = UPB_INDEX(t->t.entries, bucket-1, entry_size); + e = (struct upb_inttable_entry*)UPB_INDEX(t->t.entries, bucket-1, entry_size); if(e->key == key) return e; } while((bucket = e->next) != UPB_END_OF_CHAIN); return NULL; /* Not found. */ -- cgit v1.2.3