Skip to content

Commit be762c4

Browse files
committed
修复类型问题
1 parent 1e806c0 commit be762c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeService/src/Format/Analyzer/AlignAnalyzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ void AlignAnalyzer::AnalyzeIfStatement(FormatState &f, LuaSyntaxNode &syntaxNode
391391
for (auto op: ifConditionLogicOps) {
392392
if (op.GetPrevToken(t).GetEndLine(t) != op.GetStartLine(t)) {
393393
if (op.GetTokenKind(t) == TK_AND) {
394-
ifAlignPos = std::max(ifAlignPos, 4u);
394+
ifAlignPos = std::max(ifAlignPos, std::size_t(4));
395395
} else if (op.GetTokenKind(t) == TK_OR) {
396-
ifAlignPos = std::max(ifAlignPos, 3u);
396+
ifAlignPos = std::max(ifAlignPos, std::size_t(3));
397397
}
398398
}
399399
}

0 commit comments

Comments
 (0)