diff --git a/src/asm/asmy.y b/src/asm/asmy.y index 1b229601..52de18cf 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -997,14 +997,7 @@ incbin : T_POP_INCBIN string } ; -charmap : T_POP_CHARMAP string comma string - { - if (charmap_Add($2, $4[0] & 0xFF) == -1) { - fprintf(stderr, "Error parsing charmap. Either you've added too many (%i), or the input character length is too long (%i)' : %s\n", MAXCHARMAPS, CHARMAPLENGTH, strerror(errno)); - yyerror("Error parsing charmap."); - } - } - | T_POP_CHARMAP string comma const +charmap : T_POP_CHARMAP string comma const { if (charmap_Add($2, constexpr_GetConstantValue(&$4) & 0xFF) == -1) { fprintf(stderr, "Error parsing charmap. Either you've added too many (%i), or the input character length is too long (%i)' : %s\n", MAXCHARMAPS, CHARMAPLENGTH, strerror(errno));