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 @@ -463,11 +463,11 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
463
463
return -1 ;
464
464
}
465
465
466
- /* Bubble up the smaller child until hitting a leaf. */
466
+ /* Bubble up the larger child until hitting a leaf. */
467
467
arr = _PyList_ITEMS (heap );
468
468
limit = endpos >> 1 ; /* smallest pos that has no child */
469
469
while (pos < limit ) {
470
- /* Set childpos to index of smaller child. */
470
+ /* Set childpos to index of larger child. */
471
471
childpos = 2 * pos + 1 ; /* leftmost child position */
472
472
if (childpos + 1 < endpos ) {
473
473
PyObject * a = arr [childpos + 1 ];
@@ -487,7 +487,7 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
487
487
return -1 ;
488
488
}
489
489
}
490
- /* Move the smaller child up. */
490
+ /* Move the larger child up. */
491
491
tmp1 = arr [childpos ];
492
492
tmp2 = arr [pos ];
493
493
FT_ATOMIC_STORE_PTR_RELAXED (arr [childpos ], tmp2 );
You can’t perform that action at this time.
0 commit comments