From 84f6791e89e0440d0ff23f20b27a7219e2b5c19b Mon Sep 17 00:00:00 2001 From: leno <39647285+leno23@users.noreply.github.com> Date: Mon, 19 Jul 2021 22:32:14 +0800 Subject: [PATCH] chore(runtime-core): use bit operations instead (#4142) --- packages/runtime-core/src/renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 7cf9abc9..a750bceb 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -2485,7 +2485,7 @@ function getSequence(arr: number[]): number[] { u = 0 v = result.length - 1 while (u < v) { - c = ((u + v) / 2) | 0 + c = (u + v) >> 1 if (arr[result[c]] < arrI) { u = c + 1 } else {