summaryrefslogtreecommitdiff
path: root/src/upb_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_msg.c')
-rw-r--r--src/upb_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_msg.c b/src/upb_msg.c
index 5f96980..0106d02 100644
--- a/src/upb_msg.c
+++ b/src/upb_msg.c
@@ -100,7 +100,7 @@ static void start_cb(void *udata, struct upb_fielddef *f)
if(!*p.msg || !upb_mmhead_only(&((*p.msg)->mmhead))) {
if(*p.msg)
upb_msg_unref(*p.msg);
- *p.msg = upb_msg_new(f->ref.msg);
+ *p.msg = upb_msg_new(upb_downcast_msgdef(f->def));
}
upb_msg_clear(*p.msg);
upb_msg_set(oldmsg, f);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback