mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-04 09:44:40 +00:00
fix
This commit is contained in:
@@ -30,8 +30,7 @@ make :: proc(data: []$T, compare: $C) {
|
||||
|
||||
// start from data parent, no need to consider children
|
||||
for start := (length - 2) / 2; start >= 0; start -= 1 {
|
||||
sift_down(data, compare, start);
|
||||
start -= 1;
|
||||
sift_down(data, compare, start)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user