From 9b67b322da57f1d454500e1156f6520835165386 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 30 Aug 2009 20:05:35 -0700 Subject: Small C++ header fixes. --- src/upb_msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_msg.h') diff --git a/src/upb_msg.h b/src/upb_msg.h index abec479..21f77a4 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -141,7 +141,7 @@ INLINE struct google_protobuf_FieldDescriptorProto *upb_msg_field_descriptor( * counted reference. */ INLINE struct upb_msg *upb_msg_new(struct upb_msgdef *md) { size_t size = md->size + offsetof(struct upb_msg, data); - struct upb_msg *msg = malloc(size); + struct upb_msg *msg = (struct upb_msg*)malloc(size); memset(msg, 0, size); upb_mmhead_init(&msg->mmhead); msg->def = md; -- cgit v1.2.3