From 8539c10542a4be1e1127daea60bf1b1e4c37e092 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 1 Aug 2026 09:30:39 +0200 Subject: Fix compile-time negation and array access --- boot/parser.yy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot/parser.yy') diff --git a/boot/parser.yy b/boot/parser.yy index 85fc454..670a265 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -235,7 +235,7 @@ procedure_return: "return" expression { $$ = $2; } | "return" { $$ = nullptr; } literal: - INTEGER { $$ = new boot::literal(boot::make_position(@$), $1); } + INTEGER { $$ = new boot::literal(boot::make_position(@$), boot::integer_literal::from($1)); } | WORD { $$ = new boot::literal(boot::make_position(@$), boot::integer_literal::from($1)); } | FLOAT { $$ = new boot::literal(boot::make_position(@$), $1); } | BOOLEAN { $$ = new boot::literal(boot::make_position(@$), $1); } -- cgit v1.2.3