summaryrefslogtreecommitdiff
path: root/upb/bindings/lua/def.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/bindings/lua/def.c')
-rw-r--r--upb/bindings/lua/def.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/upb/bindings/lua/def.c b/upb/bindings/lua/def.c
index 3868179..a9ab9a8 100644
--- a/upb/bindings/lua/def.c
+++ b/upb/bindings/lua/def.c
@@ -639,8 +639,7 @@ static int lupb_symtab_add(lua_State *L) {
lupb_arena_new(L);
arena = lupb_arena_check(L, -1);
- set = google_protobuf_FileDescriptorSet_parsenew(upb_strview_make(str, len),
- arena);
+ set = google_protobuf_FileDescriptorSet_parse(str, len, arena);
if (!set) {
luaL_argerror(L, 2, "failed to parse descriptor");
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback