diff --git a/tcc.c b/tcc.c index deaa4116..13da161c 100644 --- a/tcc.c +++ b/tcc.c @@ -4293,7 +4293,7 @@ static int macro_subst_tok(TokenString *tok_str, next_nomacro(); } tok_str_add(&str, 0); - sym_push2(&args, sa->v & ~SYM_FIELD, sa->type.t, (int)str.str); + sym_push2(&args, sa->v & ~SYM_FIELD, sa->type.t, (long)str.str); sa = sa->next; if (tok == ')') { /* special case for gcc var args: add an empty