summaryrefslogtreecommitdiff
path: root/src/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.h')
-rw-r--r--src/array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.h b/src/array.h
index 766ff22d..21c30182 100644
--- a/src/array.h
+++ b/src/array.h
@@ -39,7 +39,7 @@
} \
void wabt_new_##name##_array(type##Array* array, size_t size) { \
array->size = size; \
- array->data = (type*)wabt_alloc_zero(size * sizeof(type)); \
+ array->data = static_cast<type*>(wabt_alloc_zero(size * sizeof(type))); \
}
#define WABT_DESTROY_ARRAY_AND_ELEMENTS(v, name) \