fix
This commit is contained in:
1 parent
c1d55b9296
commit
a996cfc536
1 file changed
+1
-2
@@ -30,8 +30,7 @@ make :: proc(data: []$T, compare: $C) {
|
|||||||
|
|
||||||
// start from data parent, no need to consider children
|
// start from data parent, no need to consider children
|
||||||
for start := (length - 2) / 2; start >= 0; start -= 1 {
|
for start := (length - 2) / 2; start >= 0; start -= 1 {
|
||||||
sift_down(data, compare, start);
|
sift_down(data, compare, start)
|
||||||
start -= 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user