diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-31 10:20:56 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-31 10:20:56 +0200 |
| commit | 661c29a7835cf1755deaf21f91832f00e958a318 (patch) | |
| tree | dc048d1672e17beec2d8a81e2c748280277a191c /boot/parser.yy | |
| parent | f8daedce5c73e02dfb2fc59d75777190185584df (diff) | |
| download | elna-661c29a7835cf1755deaf21f91832f00e958a318.tar.gz | |
Review spaceship usage
Diffstat (limited to 'boot/parser.yy')
| -rw-r--r-- | boot/parser.yy | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::int32_t>(boot::make_position(@$), $1); } - | WORD { $$ = new boot::literal<std::uint32_t>(boot::make_position(@$), $1); } + | WORD { $$ = new boot::literal<boot::integer_literal>(boot::make_position(@$), boot::integer_literal::from($1)); } | FLOAT { $$ = new boot::literal<double>(boot::make_position(@$), $1); } | BOOLEAN { $$ = new boot::literal<bool>(boot::make_position(@$), $1); } | CHARACTER { $$ = new boot::literal<unsigned char>(boot::make_position(@$), $1.at(0)); } |
