Allow one-digit hex-constants of the form "0h".

svn path=/trunk/yasm/; revision=690
0.3
Peter Johnson 23 years ago
parent ca721cf125
commit 19569a8d6a
  1. 2
      modules/parsers/nasm/nasm-token.re
  2. 2
      src/parsers/nasm/nasm-token.re

@ -234,7 +234,7 @@ scan:
}
/* 0AAh form of hexidecimal number */
digit hexdigit+ "h" {
digit hexdigit* "h" {
s.tok[TOKLEN-1] = '\0'; /* strip off 'h' */
yylval.intn = intnum_new_hex(s.tok);
RETURN(INTNUM);

@ -234,7 +234,7 @@ scan:
}
/* 0AAh form of hexidecimal number */
digit hexdigit+ "h" {
digit hexdigit* "h" {
s.tok[TOKLEN-1] = '\0'; /* strip off 'h' */
yylval.intn = intnum_new_hex(s.tok);
RETURN(INTNUM);

Loading…
Cancel
Save