mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-11 17:10:45 +08:00
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:
parent
c4147f1fcc
commit
5b76fa26c9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user