File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Top Open diff view settings Original file line number Diff line number Diff line change @@ -463,11 +463,11 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
463463 return -1 ;
464464 }
465465
466- /* Bubble up the smaller child until hitting a leaf. */
466+ /* Bubble up the larger child until hitting a leaf. */
467467 arr = _PyList_ITEMS (heap );
468468 limit = endpos >> 1 ; /* smallest pos that has no child */
469469 while (pos < limit ) {
470- /* Set childpos to index of smaller child. */
470+ /* Set childpos to index of larger child. */
471471 childpos = 2 * pos + 1 ; /* leftmost child position */
472472 if (childpos + 1 < endpos ) {
473473 PyObject * a = arr [childpos + 1 ];
@@ -487,7 +487,7 @@ siftup_max(PyListObject *heap, Py_ssize_t pos)
487487 return -1 ;
488488 }
489489 }
490- /* Move the smaller child up. */
490+ /* Move the larger child up. */
491491 tmp1 = arr [childpos ];
492492 tmp2 = arr [pos ];
493493 FT_ATOMIC_STORE_PTR_RELAXED (arr [childpos ], tmp2 );
You can’t perform that action at this time.
0 commit comments