summaryrefslogtreecommitdiff
path: root/src/upb_msg.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-28 15:38:29 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-28 15:38:29 -0800
commita95ab58e79c50b0927eae2b834d3de20a8effc36 (patch)
tree2cfb873d3a9d0976aca4ba6d9b1208335b725c3d /src/upb_msg.c
parent246a36998bc0e6800959ff76c2a8c76ff8de3561 (diff)
Overhaul defs to derive from a common base.
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