diff --git a/apps/oxlint/src-js/plugins/location.ts b/apps/oxlint/src-js/plugins/location.ts index 8ff8969971ebd..4586826f3497b 100644 --- a/apps/oxlint/src-js/plugins/location.ts +++ b/apps/oxlint/src-js/plugins/location.ts @@ -166,7 +166,7 @@ function getLineColumnFromOffsetUnchecked(offset: number): LineColumn { high = lineStartIndices.length, mid: number; do { - mid = ((low + high) / 2) | 0; // Use bitwise OR to floor the division + mid = (low + high) >>> 1; if (offset < lineStartIndices[mid]) { high = mid; } else {