From fcd1381e3d619b39d0830fc6019078a9282325b3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Mar 2024 23:21:44 -0500 Subject: Minor cleanups to get compilation working on clang --- builtins/array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'builtins/array.c') diff --git a/builtins/array.c b/builtins/array.c index 8ee771ea..07814f66 100644 --- a/builtins/array.c +++ b/builtins/array.c @@ -321,7 +321,8 @@ public uint32_t Array__hash(const array_t *arr, const TypeInfo *type) const TypeInfo *item = type->ArrayInfo.item; if (item->tag == PointerInfo || (item->tag == CustomInfo && item->CustomInfo.hash == NULL)) { // Raw data hash int64_t item_size = item->size; - uint8_t hash_batch[4 + 8*item_size] = {}; + uint8_t hash_batch[4 + 8*item_size]; + memset(hash_batch, 0, sizeof(hash_batch)); uint8_t *p = hash_batch, *end = hash_batch + sizeof(hash_batch); int64_t length = arr->length; *p = (uint32_t)length; -- cgit v1.2.3