From 24628e91354c7eb93dcf456ab20a0d5274ee47c9 Mon Sep 17 00:00:00 2001 From: AdventureT Date: Sun, 28 Jan 2024 10:28:52 +0100 Subject: [PATCH] Tiny optimisation --- Toshi/Source/TKernel/TFileLexer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Toshi/Source/TKernel/TFileLexer.cpp b/Toshi/Source/TKernel/TFileLexer.cpp index 28090e3..eb58276 100644 --- a/Toshi/Source/TKernel/TFileLexer.cpp +++ b/Toshi/Source/TKernel/TFileLexer.cpp @@ -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); }