Skip to content

Commit 78845b4

Browse files
committed
Fix warnings
1 parent 5b52121 commit 78845b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Workspace.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ size_t positionToOffset(const std::string& contents, const lsp::Position& positi
555555
{
556556
// TODO: handle if position.line or position.character < 0
557557
size_t startOfLine = 0;
558-
for (int i = 0; i != position.line; ++i)
558+
for (unsigned int i = 0; i != position.line; ++i)
559559
{
560560
size_t nextNewLine = contents.find('\n', startOfLine);
561561
if (nextNewLine == std::string::npos)

0 commit comments

Comments
 (0)