From 30b0d1c833631923f2544da69b55b377ce6036a7 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 14 Jun 2018 10:25:57 -0700 Subject: [PATCH] Fix const/non-const mismatch in array_splice function Co-Authored-By: Ashi Krishnan --- src/runtime/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/array.h b/src/runtime/array.h index 45b3adaa..b32487a2 100644 --- a/src/runtime/array.h +++ b/src/runtime/array.h @@ -110,7 +110,7 @@ static inline void array__grow(VoidArray *self, size_t element_size) { static inline void array__splice(VoidArray *self, size_t element_size, uint32_t index, uint32_t old_count, - uint32_t new_count, void *elements) { + uint32_t new_count, const void *elements) { uint32_t new_size = self->size + new_count - old_count; uint32_t old_end = index + old_count; uint32_t new_end = index + new_count;