diff --git a/src/parsing.cpp b/src/parsing.cpp index 04794bf..5fda559 100644 --- a/src/parsing.cpp +++ b/src/parsing.cpp @@ -25,7 +25,7 @@ namespace parsing { if (token.type == token::Type::LiteralInt) { stream.m_position = inner.m_position; - auto expr = new AST::IntLiteralExpression{ 5 }; + auto expr = new AST::IntLiteralExpression{ std::stoi(token.content) }; return new std::unique_ptr{ expr }; } else {