diff options
Diffstat (limited to 'src/upb_parse.c')
-rw-r--r-- | src/upb_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upb_parse.c b/src/upb_parse.c index 8f2c2ff..2948022 100644 --- a/src/upb_parse.c +++ b/src/upb_parse.c @@ -467,9 +467,9 @@ size_t upb_cbparser_parse(struct upb_cbparser *p, void *_buf, size_t len, buf = delim_end; // Could be >end. } } else { - //if(!f || !upb_check_type(tag.wire_type, f->type)) { - // buf = skip_wire_value(buf, end, tag.wire_type, status); - if (f->type == UPB_TYPE(GROUP)) { + if(!f || !upb_check_type(tag.wire_type, f->type)) { + buf = skip_wire_value(buf, end, tag.wire_type, status); + } else if (f->type == UPB_TYPE(GROUP)) { submsg_end = push(p, start, 0, f, status); msgdef = p->top->msgdef; } else { |