]> git.draconx.ca Git - cdecl99.git/blobdiff - src/scan.l
libcdecl: Fix crash when bootstrapped w/ old Bison.
[cdecl99.git] / src / scan.l
index 90f5ad9de3b88af33fc145f76181a4c9e32ef653..767ba2263aca0eea2fe0888ff0c2e4dd4207e767 100644 (file)
@@ -173,7 +173,7 @@ INTEGER 0x[[:xdigit:]]+|0[0-7]+|[[:digit:]]+
        int tok;
 
        yylval->spectype = UNPACK_SPEC(x & 0xff);
-       if ((tok = (x >> 8)) == T_IDENT) {
+       if ((tok = (x >> 8)) == PACK_TOKEN(T_IDENT)) {
                /*
                 * Our IDENT pattern includes hyphens so we can match
                 * "variable-length" as a keyword.  In all other cases a