diff options
Diffstat (limited to 'boot/parser.yy')
| -rw-r--r-- | boot/parser.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/parser.yy b/boot/parser.yy index b48510b..1b3005e 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -83,7 +83,7 @@ along with GCC; see the file COPYING3. If not see %token <std::pair<std::uint16_t, elna::boot::integer_sign>> INTEGER16 WORD16 %token <std::pair<std::uint32_t, elna::boot::integer_sign>> INTEGER32 WORD32 %token <double> FLOAT -%token <std::string> CHARACTER +%token <std::uint32_t> CHARACTER %token <std::string> STRING %token <bool> BOOLEAN %token LEFT_PAREN "(" RIGHT_PAREN ")" LEFT_SQUARE "[" RIGHT_SQUARE "]" @@ -308,7 +308,7 @@ literal: } | CHARACTER { - $$ = new boot::literal<unsigned char>(boot::make_position(@$), $1.at(0), boot::integer_sign::_unsigned); + $$ = new boot::literal<unsigned char>(boot::make_position(@$), $1, boot::integer_sign::_unsigned); } | "nil" { |
