summaryrefslogtreecommitdiff
path: root/upb/json/printer.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/json/printer.c')
-rw-r--r--upb/json/printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/printer.c b/upb/json/printer.c
index fe306d4..00438aa 100644
--- a/upb/json/printer.c
+++ b/upb/json/printer.c
@@ -585,7 +585,7 @@ static void set_enum_hd(upb_handlers *h,
bool preserve_fieldnames,
upb_handlerattr *attr) {
EnumHandlerData *hd = upb_gmalloc(sizeof(EnumHandlerData));
- hd->enumdef = (const upb_enumdef *)upb_fielddef_subdef(f);
+ hd->enumdef = upb_fielddef_enumsubdef(f);
hd->keyname = newstrpc(h, f, preserve_fieldnames);
upb_handlers_addcleanup(h, hd, upb_gfree);
upb_handlerattr_sethandlerdata(attr, hd);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback