diff options
| author | gingerBill <bill@gingerbill.org> | 2019-02-06 16:06:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-02-06 16:06:48 +0000 |
| commit | e1ae359a774fc343f5a3400eabf4c9b3ca5d6eb4 (patch) | |
| tree | 2f2e4c50e6bb145f3718f3ddd4877b05f39f22d5 /src/parser.cpp | |
| parent | bc5c37ebb188384d0a44b0b35aec9e01bc9104f0 (diff) | |
Replace redundant code
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |