summaryrefslogtreecommitdiff
path: root/src/upb_parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_parse.h')
-rw-r--r--src/upb_parse.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/upb_parse.h b/src/upb_parse.h
index 1454dd5..a8f4294 100644
--- a/src/upb_parse.h
+++ b/src/upb_parse.h
@@ -74,9 +74,8 @@ typedef void (*upb_submsg_start_cb)(void *udata,
typedef void (*upb_submsg_end_cb)(void *udata);
struct upb_stream_parser {
- /* For delimited submsgs, counts from the submsg len down to zero.
- * For group submsgs, counts from zero down to the negative len. */
- uint32_t stack[UPB_MAX_NESTING], *top, *limit;
+ // Stack entries store the offset where the submsg ends (for groups, 0).
+ size_t stack[UPB_MAX_NESTING], *top, *limit;
size_t completed_offset;
void *udata;
upb_tag_cb tag_cb;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback