summaryrefslogtreecommitdiff
path: root/tools/upbc.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-08-27 15:04:22 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-08-27 15:04:22 -0700
commit2bad79f7219eb55aca4ab730bf9b8a91847cd4b8 (patch)
tree165d06eb7739b7d69e1230e40bebd0899d487379 /tools/upbc.c
parentf17ed90f7704d77e3eb59a6f6b693ab4c598936a (diff)
Fix upbc for upb_array API change.
Diffstat (limited to 'tools/upbc.c')
-rw-r--r--tools/upbc.c6
1 files 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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback