From 3b8cd565be2bed270baa495310051de50cd1cf93 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 28 Oct 2006 14:05:19 +0000 Subject: [PATCH] fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge) --- tcc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tcc.c b/tcc.c index 7596adf5..ac221626 100644 --- a/tcc.c +++ b/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 */ -- 2.11.4.GIT