summaryrefslogtreecommitdiff
path: root/src/upb_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_array.h')
-rw-r--r--src/upb_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_array.h b/src/upb_array.h
index b5eb22d..f79e35d 100644
--- a/src/upb_array.h
+++ b/src/upb_array.h
@@ -45,7 +45,7 @@ INLINE union upb_value_ptr upb_array_getelementptr(struct upb_array *arr,
INLINE struct upb_array *upb_array_new(struct upb_msg_fielddef *f)
{
- struct upb_array *arr = malloc(sizeof(*arr));
+ struct upb_array *arr = (struct upb_array*)malloc(sizeof(*arr));
upb_mmhead_init(&arr->mmhead);
arr->elements._void = NULL;
arr->len = 0;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback