From a95ab58e79c50b0927eae2b834d3de20a8effc36 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 28 Nov 2009 15:38:29 -0800 Subject: Overhaul defs to derive from a common base. --- src/upb_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_parse.c') diff --git a/src/upb_parse.c b/src/upb_parse.c index 3abaedf..eed8ec8 100644 --- a/src/upb_parse.c +++ b/src/upb_parse.c @@ -387,7 +387,7 @@ static uint8_t *push(struct upb_cbparser *p, uint8_t *start, } struct upb_cbparser_frame *frame = p->top; frame->end_offset = p->completed_offset + submsg_len; - frame->msgdef = f->ref.msg; + frame->msgdef = upb_downcast_msgdef(f->def); if(p->start_cb) p->start_cb(p->udata, f); return get_msgend(p, start); -- cgit v1.2.3