diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2017-07-02 09:53:14 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2017-07-02 09:53:14 -0700 |
commit | 76fcdd2ee92e8f7852f96ccd49fe776236ae4e60 (patch) | |
tree | 0c6eaa767a54b2b82675fb28a81fcb37519da468 /upb/bindings/lua/upb/pb.c | |
parent | 1b9d37a00ebae8b59773c8501d8712e1c3335302 (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.c | 3 |
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; |