diff options
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)); } |
