From cc1219258d635b03a9db887dced64a8ed397d78d Mon Sep 17 00:00:00 2001 From: jose-rZM <100773386+jose-rZM@users.noreply.github.com> Date: Tue, 4 Feb 2025 21:28:44 +0100 Subject: [PATCH] use of static cast --- src/lexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.cpp b/src/lexer.cpp index 0a49ce0..b7c9411 100644 --- a/src/lexer.cpp +++ b/src/lexer.cpp @@ -30,10 +30,10 @@ template Lex::ParseInput::ParseInput() { template bool Lex::Add::operator()(Token const& t, std::vector& tks) const { - if (t.id() == symbol_table::i_) { + if (static_cast(t.id()) == symbol_table::i_) { return true; } - tks.push_back(symbol_table::token_types_r_.at(t.id())); + tks.push_back(symbol_table::token_types_r_.at(static_cast(t.id()))); return true; }