From 01fe9f2eeab8b54487a4673e74851160adb1718d Mon Sep 17 00:00:00 2001 From: Fabrice Date: Mon, 2 Mar 2026 12:43:25 +0100 Subject: working on array implementation --- src/memory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/memory.cc') diff --git a/src/memory.cc b/src/memory.cc index 1cb6cb9..cf8f88c 100644 --- a/src/memory.cc +++ b/src/memory.cc @@ -41,7 +41,8 @@ const Allocator* heap_allocator() { } template -bool slice_copy(const Allocator* allocator, const Slice* source, Slice* out) { +bool slice_copy(const Allocator* allocator, const Slice* source, + Slice* out) { T* new_ptr = allocate(allocator, source->size(), alignof(T)); if (new_ptr == nullptr) return false; -- cgit v1.2.3