Skip to content

Commit b199a31

Browse files
committed
Attempt to avoid deopt (microsoft#64546)
1 parent 5632214 commit b199a31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/editor/browser/viewParts/lines/rangeUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class RangeUtil {
126126
if (startChildIndex !== endChildIndex) {
127127
if (endChildIndex > 0 && endOffset === 0) {
128128
endChildIndex--;
129-
endOffset = Number.MAX_VALUE;
129+
endOffset = Constants.MAX_SAFE_SMALL_INTEGER;
130130
}
131131
}
132132

0 commit comments

Comments
 (0)