diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 01:07:26 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 01:07:26 -0700 |
commit | d7fc64ab66893a8bda202554c098119ae900c131 (patch) | |
tree | b8bcb69db35690eeb852e7a3e4c033ed3fcbe716 /upb_context.c | |
parent | ec2da8e59df66569f010dbdbddb207372460f860 (diff) |
Fixes for groups and 32-bit varints.
Diffstat (limited to 'upb_context.c')
-rw-r--r-- | upb_context.c | 3 |
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) |