Replace redundant code

This commit is contained in:
gingerBill
2019-02-06 16:06:48 +00:00
parent bc5c37ebb1
commit e1ae359a77
2 changed files with 2 additions and 2 deletions

View File

@@ -1028,7 +1028,7 @@ Token consume_comment(AstFile *f, isize *end_line_) {
GB_ASSERT(tok.kind == Token_Comment);
isize end_line = tok.pos.line;
if (tok.string[1] == '*') {
for (isize i = 0; i < tok.string.len; i++) {
for (isize i = 2; i < tok.string.len; i++) {
if (tok.string[i] == '\n') {
end_line++;
}