Cast types appropriately to fix compilation error.

This commit is contained in:
Aviral Goel 2025-02-07 15:16:39 -08:00
parent 7199da820f
commit 6b30374b3a

View file

@ -117,9 +117,9 @@ struct StringWriter : Writer
index = newlinePos + 1;
}
pos.line += numLines;
pos.line += unsigned(numLines);
if (numLines > 0)
pos.column = unsigned(s.size()) - index;
pos.column = unsigned(s.size()) - unsigned(index);
else
pos.column += unsigned(s.size());
}