diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:43:25 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:43:25 +0100 |
| commit | 01fe9f2eeab8b54487a4673e74851160adb1718d (patch) | |
| tree | d95bcb5c81a76660c01fa8434bf59613b6ac7586 /src/memory.cc | |
| parent | ef816e31ba15bbda487298339c5ca88456c31d33 (diff) | |
working on array implementation
Diffstat (limited to 'src/memory.cc')
| -rw-r--r-- | src/memory.cc | 3 |
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; |
