From e1ae359a774fc343f5a3400eabf4c9b3ca5d6eb4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 6 Feb 2019 16:06:48 +0000 Subject: Replace redundant code --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index ab5f1589c..a62bac233 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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++; } -- cgit v1.2.3