From 08021301c7d2c6b5d134a831a1337db9e4b60355 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 29 Jul 2019 17:18:47 -0700 Subject: [PATCH] wasm: Fix descendants of type error Fixes #394 --- lib/src/array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/array.h b/lib/src/array.h index 86e60789..bc77e687 100644 --- a/lib/src/array.h +++ b/lib/src/array.h @@ -48,8 +48,8 @@ extern "C" { #define array_grow_by(self, count) \ (array__grow((VoidArray *)(self), count, array__elem_size(self)), \ - (self)->size += count, \ - memset((self)->contents + (self)->size, 0, (count) * array__elem_size(self))) + memset((self)->contents + (self)->size, 0, (count) * array__elem_size(self)), \ + (self)->size += (count)) #define array_push_all(self, other) \ array_splice((self), (self)->size, 0, (other)->size, (other)->contents)