summaryrefslogtreecommitdiff
path: root/upb_context.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-07 01:07:26 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-07 01:07:26 -0700
commitd7fc64ab66893a8bda202554c098119ae900c131 (patch)
treeb8bcb69db35690eeb852e7a3e4c033ed3fcbe716 /upb_context.c
parentec2da8e59df66569f010dbdbddb207372460f860 (diff)
Fixes for groups and 32-bit varints.
Diffstat (limited to 'upb_context.c')
-rw-r--r--upb_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/upb_context.c b/upb_context.c
index d83906c..d857d16 100644
--- a/upb_context.c
+++ b/upb_context.c
@@ -241,7 +241,8 @@ bool addfd(struct upb_strtable *addto, struct upb_strtable *existingdefs,
struct upb_msg_field *f = &m->fields[i];
google_protobuf_FieldDescriptorProto *fd = m->field_descriptors[i];
union upb_symbol_ref ref;
- if(fd->type == GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_MESSAGE)
+ if(fd->type == GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_MESSAGE ||
+ fd->type == GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_GROUP)
ref = resolve2(existingdefs, addto, &e->e.key, fd->type_name,
UPB_SYM_MESSAGE);
else if(fd->type == GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_ENUM)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback