Skip to content

Commit bb34ad8

Browse files
committed
fix(codeql): Comparison of narrow type with wide type in loop condition
1 parent 0e2bc39 commit bb34ad8

File tree

1 file changed

+1
-1
lines changed
  • org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/utils

1 file changed

+1
-1
lines changed

org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/utils/Indentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private static String normalizeIndentationFromWhitespace(final String text, fina
3636

3737
final var result = new StringBuilder();
3838
if (!insertSpaces) {
39-
final long tabsCnt = spacesCnt / indentSize;
39+
final int tabsCnt = spacesCnt / indentSize;
4040
spacesCnt = spacesCnt % indentSize;
4141
for (int i = 0; i < tabsCnt; i++) {
4242
result.append('\t');

0 commit comments

Comments
 (0)