Skip to content

Commit 84f6791

Browse files
authored
chore(runtime-core): use bit operations instead (vuejs#4142)
1 parent df0ce21 commit 84f6791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ function getSequence(arr: number[]): number[] {
24852485
u = 0
24862486
v = result.length - 1
24872487
while (u < v) {
2488-
c = ((u + v) / 2) | 0
2488+
c = (u + v) >> 1
24892489
if (arr[result[c]] < arrI) {
24902490
u = c + 1
24912491
} else {

0 commit comments

Comments
 (0)