diff options
| author | Franz Höltermann <Francis_the_cat@gmx.de> | 2024-01-08 17:11:06 +0100 |
|---|---|---|
| committer | Franz Höltermann <Francis_the_cat@gmx.de> | 2024-01-08 17:11:06 +0100 |
| commit | 873b7f8588a4a9c50faa60ebbf98b9019042b17e (patch) | |
| tree | a0fcfdb288fe83dc704f5c6a27ba0f9ec51b96cc /core/slice | |
| parent | 7d3dfb1046ff1e08d1cbbc1c6168e6534a074816 (diff) | |
Fixed type of temporary slice in sort_by_indices_overwrite
Diffstat (limited to 'core/slice')
| -rw-r--r-- | core/slice/sort.odin | 2 |
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] |