summaryrefslogtreecommitdiff
path: root/upb/def.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-03-26 10:37:37 -0700
committerGitHub <noreply@github.com>2019-03-26 10:37:37 -0700
commite999afb61255179d563375e2748a02c036e927e3 (patch)
tree0278856cbd0263bdddd2f0c68259d3ec2ea383d5 /upb/def.c
parenta8a0bc73b981bd94509c180ad8cac36143c479ec (diff)
parent0abf6083b33b13bea895bf5d885c5ec58b2bd986 (diff)
Merge pull request #150 from haberman/apitweaks
A few small API tweaks.
Diffstat (limited to 'upb/def.c')
-rw-r--r--upb/def.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/def.c b/upb/def.c
index 6d653ca..8d40b8e 100644
--- a/upb/def.c
+++ b/upb/def.c
@@ -1743,7 +1743,8 @@ bool _upb_symtab_loaddefinit(upb_symtab *s, const upb_def_init *init) {
if (!_upb_symtab_loaddefinit(s, *deps)) goto err;
}
- file = google_protobuf_FileDescriptorProto_parsenew(init->descriptor, arena);
+ file = google_protobuf_FileDescriptorProto_parse(
+ init->descriptor.data, init->descriptor.size, arena);
if (!file) {
upb_status_seterrf(
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback