Skip to content

Commit

Permalink
Tiny optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdventureT committed Jan 28, 2024
1 parent 3d75b16 commit 24628e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Toshi/Source/TKernel/TFileLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ TFileLexer::Token TFileLexer::get_next_token()
TINT len = 0;
char buffer[WORDBUF_SIZE];
for (TINT i = peek(); i != '\n' && i != '\r'; i = peek()) {
buffer[len] = i;
len++;
buffer[len++] = i;
advance();
TASSERT(len < WORDBUF_SIZE);
}
Expand Down

0 comments on commit 24628e9

Please sign in to comment.