Skip to content

Commit d9c6964

Browse files
committed
解决一个警告
1 parent c7ad7f3 commit d9c6964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeService/src/FormatElement/FormatContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ bool FormatContext::ShouldBreakLine(TextRange range)
157157
column += _parser->GetLuaFile()->GetLineRestCharacter(range.StartOffset);
158158
}
159159

160-
return column >= _options.max_line_length;
160+
return static_cast<int>(column) >= _options.max_line_length;
161161
}
162162

163163
std::shared_ptr<LuaParser> FormatContext::GetParser()

0 commit comments

Comments
 (0)