diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-01-24 11:13:50 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-01-24 11:13:50 +0100 |
| commit | 533079fc1ae8e88ae7a5ce10666e56a53791a0d0 (patch) | |
| tree | d0490b968bc06afa0840100c0392df14f0862d83 /core/slice | |
| parent | 8e390921c3e470e43d3e4aee64a46c1ad867e192 (diff) | |
Fix #6123
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 9f91a0f73..ed9d1f315 100644 --- a/core/slice/sort.odin +++ b/core/slice/sort.odin @@ -416,7 +416,7 @@ reverse_sort_by_cmp :: proc(data: $T/[]$E, cmp: proc(i, j: E) -> Ordering) { sort_by_cmp_with_data(data, proc(i, j: E, user_data: rawptr) -> Ordering { k := (proc(i, j: E) -> Ordering)(user_data) return k(j, i) - }, rawptr(data)) + }, rawptr(cmp)) } |