From 500662f5c516c57a4b86c87d943f084b7b44fdcb Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 15 Sep 2021 20:05:23 +0200 Subject: [PATCH] Add the isFinalDefine boolean to 1 in Parser.hpp --- src/headers/parsing/Parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index b8f10f3..e1d6baf 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -43,7 +43,7 @@ namespace Parser { bool isFinalDefine = nextAre(2, TAG, DEFINE); if (isFinalDefine || next.toktype == DEFINE) { parseTree << Define(isFinalDefine, current.toktext); - i += isFinalDefine ? 2 : 1; + i += 1 + isFinalDefine; } else { parseTree << Reference(current.toktext); }