From 661c29a7835cf1755deaf21f91832f00e958a318 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 31 Jul 2026 10:20:56 +0200 Subject: Review spaceship usage --- 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 4fdbf84..85fc454 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -236,7 +236,7 @@ procedure_return: | "return" { $$ = nullptr; } literal: INTEGER { $$ = new boot::literal(boot::make_position(@$), $1); } - | WORD { $$ = new boot::literal(boot::make_position(@$), $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); } | CHARACTER { $$ = new boot::literal(boot::make_position(@$), $1.at(0)); } -- cgit v1.2.3