Skip to content

Commit e8d4415

Browse files
committed
fix: correct decrement operation in queued length adjustment
1 parent 5a18fd5 commit e8d4415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const {
5050

5151
queuedLength = insertIndex;
5252

53-
while (firstInsertedIndex < insertIndex--) {
53+
while (firstInsertedIndex < --insertIndex) {
5454
const left = queued[firstInsertedIndex];
5555
queued[firstInsertedIndex++] = queued[insertIndex];
5656
queued[insertIndex] = left;

0 commit comments

Comments
 (0)