From f17ed90f7704d77e3eb59a6f6b693ab4c598936a Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 27 Aug 2009 11:10:13 -0700 Subject: Some cleanup and reformatting, fixed the benchmarks. --- src/upb_parse.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/upb_parse.h') 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; -- cgit v1.2.3