From 2bad79f7219eb55aca4ab730bf9b8a91847cd4b8 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 27 Aug 2009 15:04:22 -0700 Subject: Fix upbc for upb_array API change. --- tools/upbc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/upbc.c b/tools/upbc.c index 885a259..f287193 100644 --- a/tools/upbc.c +++ b/tools/upbc.c @@ -312,7 +312,7 @@ static void add_strings_from_msg(void *data, struct upb_msgdef *m, if(upb_isarray(f)) { struct upb_array *arr = *p.arr; for(uint32_t j = 0; j < arr->len; j++) - add_strings_from_value(upb_array_getelementptr(arr, j, f->type), f, t); + add_strings_from_value(upb_array_getelementptr(arr, j), f, t); } else { add_strings_from_value(p, f, t); } @@ -384,13 +384,13 @@ static void add_submsgs(void *data, struct upb_msgdef *m, struct upb_strtable *t /* Add the individual values in the array. */ for(uint32_t j = 0; j < arr->len; j++) - add_value(upb_array_getelementptr(arr, j, f->type), f, t); + add_value(upb_array_getelementptr(arr, j), f, t); /* Add submsgs. We must do this separately so that the msgs in this * array are contiguous (and don't have submsgs of the same type * interleaved). */ for(uint32_t j = 0; j < arr->len; j++) - add_submsgs(*upb_array_getelementptr(arr, j, f->type).msg, f->ref.msg, t); + add_submsgs(*upb_array_getelementptr(arr, j).msg, f->ref.msg, t); } else { if(!upb_issubmsg(f)) continue; add_value(p, f, t); -- cgit v1.2.3