summaryrefslogtreecommitdiff
path: root/upb/bindings/lua/upb/pb.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-07-02 09:53:14 -0700
committerJoshua Haberman <jhaberman@gmail.com>2017-07-02 09:53:14 -0700
commit76fcdd2ee92e8f7852f96ccd49fe776236ae4e60 (patch)
tree0c6eaa767a54b2b82675fb28a81fcb37519da468 /upb/bindings/lua/upb/pb.c
parent1b9d37a00ebae8b59773c8501d8712e1c3335302 (diff)
Removed all upb_msgdef/upb_fielddef from upb_msg.
Diffstat (limited to 'upb/bindings/lua/upb/pb.c')
-rw-r--r--upb/bindings/lua/upb/pb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/upb/bindings/lua/upb/pb.c b/upb/bindings/lua/upb/pb.c
index 731430d..1d56066 100644
--- a/upb/bindings/lua/upb/pb.c
+++ b/upb/bindings/lua/upb/pb.c
@@ -103,9 +103,8 @@ static int lupb_pb_makestrtomsgdecoder(lua_State *L) {
}
static int lupb_pb_makemsgtostrencoder(lua_State *L) {
- const upb_msglayout *layout = lupb_msgclass_getlayout(L, 1);
const lupb_msgclass *lmsgclass = lupb_msgclass_check(L, 1);
- const upb_msgdef *md = upb_msglayout_msgdef(layout);
+ const upb_msgdef *md = lupb_msgclass_getmsgdef(lmsgclass);
upb_msgfactory *factory = lupb_msgclass_getfactory(lmsgclass);
const upb_handlers *encode_handlers;
const upb_visitorplan *vp;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback