diff options
author | Vishal Powar <vishalpowar@google.com> | 2018-11-26 17:04:10 -0800 |
---|---|---|
committer | Vishal Powar <vishalpowar@google.com> | 2018-11-26 17:04:10 -0800 |
commit | 7c005e780727bbacf8cca435ad43a815614ce4bd (patch) | |
tree | 2b6bf5e8656b8c92dd38629e3c7d7c378a2f4290 | |
parent | e2ad6bd1467f8b708715b4572693c0776d4bd919 (diff) | |
parent | 22be93286395b6e75e2ff3f1cc8280376c6c53ca (diff) |
Merge branch 'master' of github.com:google/upb
-rw-r--r-- | tools/make_c_api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make_c_api.lua b/tools/make_c_api.lua index bf79b26..d9c11b2 100644 --- a/tools/make_c_api.lua +++ b/tools/make_c_api.lua @@ -380,7 +380,7 @@ local function write_h_file(filedef, append) local msgname = to_cident(msg:full_name()) append('extern const upb_msglayout %s_msginit;\n', msgname) append('UPB_INLINE %s *%s_new(upb_arena *arena) {\n', msgname, msgname) - append(' return upb_msg_new(&%s_msginit, arena);\n', msgname) + append(' return (%s *)upb_msg_new(&%s_msginit, arena);\n', msgname, msgname) append('}\n') append('UPB_INLINE %s *%s_parsenew(upb_stringview buf, upb_arena *arena) {\n', msgname, msgname) |