File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -445,11 +445,11 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
445
445
return -1 ;
446
446
}
447
447
448
- /* Bubble up the smaller child until hitting a leaf. */
448
+ /* Bubble up the larger child until hitting a leaf. */
449
449
arr = _PyList_ITEMS (heap );
450
450
limit = endpos >> 1 ; /* smallest pos that has no child */
451
451
while (pos < limit ) {
452
- /* Set childpos to index of smaller child. */
452
+ /* Set childpos to index of larger child. */
453
453
childpos = 2 * pos + 1 ; /* leftmost child position */
454
454
if (childpos + 1 < endpos ) {
455
455
PyObject * a = arr [childpos + 1 ];
@@ -469,7 +469,7 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
469
469
return -1 ;
470
470
}
471
471
}
472
- /* Move the smaller child up. */
472
+ /* Move the larger child up. */
473
473
tmp1 = arr [childpos ];
474
474
tmp2 = arr [pos ];
475
475
arr [childpos ] = tmp2 ;
You can’t perform that action at this time.
0 commit comments