fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)

This commit is contained in:
bellard 2006-10-28 14:05:19 +00:00
parent 200b58dad8
commit 3b8cd565be

5
tcc.c
View File

@ -4240,7 +4240,10 @@ static inline int *macro_twosharps(const int *macro_str)
/* if number, then create a number token */
/* NOTE: no need to allocate because
tok_str_add2() does it */
tokc.cstr = &cstr;
cstr_reset(&tokcstr);
tokcstr = cstr;
cstr_new(&cstr);
tokc.cstr = &tokcstr;
} else {
/* if identifier, we must do a test to
validate we have a correct identifier */