Fix so "0h" works.

svn path=/trunk/yasm/; revision=369
0.3
Peter Johnson 24 years ago
parent cf84bbf503
commit a9a74064b4
  1. 2
      modules/parsers/nasm/token.l.in
  2. 2
      src/parsers/nasm/token.l.in

@ -100,7 +100,7 @@ WS [ \t\r]
}
/* 0AAh form of hexidecimal number */
{DIGIT}{HEXDIGIT}+h {
{DIGIT}{HEXDIGIT}*h {
yytext[strlen(yytext)-1] = '\0'; /* strip off 'h' */
yylval.intn = intnum_new_hex(yytext);
return INTNUM;

@ -100,7 +100,7 @@ WS [ \t\r]
}
/* 0AAh form of hexidecimal number */
{DIGIT}{HEXDIGIT}+h {
{DIGIT}{HEXDIGIT}*h {
yytext[strlen(yytext)-1] = '\0'; /* strip off 'h' */
yylval.intn = intnum_new_hex(yytext);
return INTNUM;

Loading…
Cancel
Save