summaryrefslogtreecommitdiff
path: root/src/memory.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 12:43:25 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 12:43:25 +0100
commit01fe9f2eeab8b54487a4673e74851160adb1718d (patch)
treed95bcb5c81a76660c01fa8434bf59613b6ac7586 /src/memory.cc
parentef816e31ba15bbda487298339c5ca88456c31d33 (diff)
working on array implementation
Diffstat (limited to 'src/memory.cc')
-rw-r--r--src/memory.cc3
1 files changed, 2 insertions, 1 deletions
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 <typename T>
-bool slice_copy(const Allocator* allocator, const Slice<T>* source, Slice<T>* out) {
+bool slice_copy(const Allocator* allocator, const Slice<T>* source,
+ Slice<T>* out) {
T* new_ptr = allocate(allocator, source->size(), alignof(T));
if (new_ptr == nullptr) return false;