aboutsummaryrefslogtreecommitdiff
path: root/core/slice
diff options
context:
space:
mode:
authorFranz Höltermann <Francis_the_cat@gmx.de>2024-01-08 17:11:06 +0100
committerFranz Höltermann <Francis_the_cat@gmx.de>2024-01-08 17:11:06 +0100
commit873b7f8588a4a9c50faa60ebbf98b9019042b17e (patch)
treea0fcfdb288fe83dc704f5c6a27ba0f9ec51b96cc /core/slice
parent7d3dfb1046ff1e08d1cbbc1c6168e6534a074816 (diff)
Fixed type of temporary slice in sort_by_indices_overwrite
Diffstat (limited to 'core/slice')
-rw-r--r--core/slice/sort.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/slice/sort.odin b/core/slice/sort.odin
index 515eddcc3..3b4119afa 100644
--- a/core/slice/sort.odin
+++ b/core/slice/sort.odin
@@ -62,7 +62,7 @@ _sort_by_indices :: proc(data, sorted: $T/[]$E, indices: []int) {
sort_by_indices_overwrite :: proc(data: $T/[]$E, indices: []int) {
assert(len(data) == len(indices))
- temp := make([]int, len(data), context.allocator)
+ temp := make([]E, len(data), context.allocator)
defer delete(temp)
for v, i in indices {
temp[i] = data[v]