diff options
| author | flysand7 <thebumboni@gmail.com> | 2024-09-08 11:17:27 +1100 |
|---|---|---|
| committer | flysand7 <thebumboni@gmail.com> | 2024-09-08 11:17:27 +1100 |
| commit | f1f5dc614e0451c65d7e036ecb92eb76a7b753bd (patch) | |
| tree | c8093a83a925f2b72b706b97dc4d31171183a37c | |
| parent | 6eb80831b5ec9e43f1b70eb305688e8cff60f0ce (diff) | |
[mem]: Remove old comments
| -rw-r--r-- | core/mem/allocators.odin | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index e7b5faa16..2ee397316 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -402,7 +402,6 @@ scratch_resize_bytes_non_zeroed :: proc( } begin := uintptr(raw_data(s.data)) end := begin + uintptr(len(s.data)) - // TODO(flysand): Doesn't handle old_memory == nil old_ptr := uintptr(old_memory) if begin <= old_ptr && old_ptr < end && old_ptr+uintptr(size) < end { s.curr_offset = int(old_ptr-begin)+size @@ -412,7 +411,6 @@ scratch_resize_bytes_non_zeroed :: proc( if err != nil { return data, err } - // TODO(flysand): OOB access on size < old_size. runtime.copy(data, byte_slice(old_memory, old_size)) err = scratch_free(s, old_memory, loc) return data, err |