Re: [PATCH 1/2] git-compat-util: st_add4: work around gcc 4.2.x compiler crash
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Mar 21, 2016, 17:46 UTC
- Message-ID
- <56F0336E.6000103@web.de>
- In-Reply-To
- <1458534958-6956-2-git-send-email-sunshine@sunshineco.com>
On 2016-03-21 05.35, Eric Sunshine wrote:
Show 6 quoted lines
> } > -#define st_add3(a,b,c) st_add((a),st_add((b),(c))) > -#define st_add4(a,b,c,d) st_add((a),st_add3((b),(c),(d))) > +#define st_add3(a,b,c) st_add(st_add((a),(b)),(c)) > +#define st_add4(a,b,c,d) st_add(st_add3((a),(b),(c)),(d)) >
That fix compiles on my test machine, and passes the test suite. thanks for digging.