diff --git a/sdk/lang/Array.h b/sdk/lang/Array.h index c133068f..c98ced3c 100644 --- a/sdk/lang/Array.h +++ b/sdk/lang/Array.h @@ -13,7 +13,7 @@ #include -#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc(size * sizeof(type)) }); +#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) }); #define _lang_array__Array_get(array, index, type) ( \ (index < 0 || index >= array.length) ? \