summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vector.h b/src/vector.h
index f64b611c..a40b7a42 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -90,8 +90,9 @@
} \
type* wasm_append_##name(struct WasmAllocator* allocator, \
type##Vector* vec) { \
- return wasm_append_element(allocator, (void**)&vec->data, &vec->size, \
- &vec->capacity, sizeof(type)); \
+ return (type*)wasm_append_element(allocator, (void**)&vec->data, \
+ &vec->size, &vec->capacity, \
+ sizeof(type)); \
} \
void wasm_append_##name##_value(struct WasmAllocator* allocator, \
type##Vector* vec, const type* value) { \