From 01abadc1faf2635374774666c88a8e29ea5b108f Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 19 Mar 2022 16:28:32 +0100 Subject: [PATCH] Use cmp_less instead of cmp_greater in Parser.hpp Signed-off-by: Username404 --- 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 bb7c02d..ccb2c0a 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -30,7 +30,7 @@ namespace Parser { const auto nextAre = [&i, &lexed] Y>(const initializer_list& nextValues) -> bool { unsigned int j = 1; for (const Y& nextValue: nextValues) { - if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) { + if (cmp_less(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) { return false; } ++j;