preproc.c: prevent the compiler from reducing enum pp_token_type

The compiler is free to store enum pp_token_type into any size integer
small enough to contain all the values up to 2^n-1 for the smallest n
which contains all the values.  Force it to size it to integer size,
since we use it to hold macro positional parameters.
This commit is contained in:
H. Peter Anvin 2008-05-26 11:14:38 -07:00
parent c4147f1fcc
commit 5b76fa26c9

View File

@ -158,7 +158,8 @@ enum pp_token_type {
TOK_NUMBER, TOK_FLOAT, TOK_SMAC_END, TOK_OTHER,
TOK_INTERNAL_STRING,
TOK_PREPROC_Q, TOK_PREPROC_QQ,
TOK_SMAC_PARAM /* MUST BE LAST IN THE LIST!!! */
TOK_SMAC_PARAM, /* MUST BE LAST IN THE LIST!!! */
TOK_MAX = INT_MAX /* Keep compiler from reducing the range */
};
struct Token {