summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-01-05 13:29:15 -0800
committerGitHub <noreply@github.com>2017-01-05 13:29:15 -0800
commitce155764645df932b0baaa8c1efebbd31bb3ea08 (patch)
tree45face4bcb15bfbf110063949ea6deb9c1b81d74 /src/vector.h
parentdc8b34ffae06d51d1a16e65ba01982f0b92fd59d (diff)
downloadwabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.tar.gz
wabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.tar.bz2
wabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.zip
Add extra casts in headers to remove warnings when building in C++ mode (#265)
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) { \