We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb3fbe commit 7309c5fCopy full SHA for 7309c5f
packages/scheduler/src/SchedulerMinHeap.js
@@ -41,7 +41,7 @@ export function pop(heap: Heap): Node | null {
41
function siftUp(heap, node, i) {
42
let index = i;
43
while (true) {
44
- const parentIndex = Math.floor((index - 1) / 2);
+ const parentIndex = (index - 1) >>> 1;
45
const parent = heap[parentIndex];
46
if (parent !== undefined && compare(parent, node) > 0) {
47
// The parent is larger. Swap positions.
0 commit comments