mirror of
https://github.com/frida/tinycc
synced 2024-12-28 23:59:41 +03:00
fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
This commit is contained in:
parent
200b58dad8
commit
3b8cd565be
5
tcc.c
5
tcc.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user