Skip to content

Commit 2ab5c88

Browse files
committed
Merge branch 'es/st-add4-gcc-4.2-workaround' into maint
* es/st-add4-gcc-4.2-workaround: git-compat-util: st_add4: work around gcc 4.2.x compiler crash
2 parents 937978e + d616fbf commit 2ab5c88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-compat-util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ static inline size_t st_add(size_t a, size_t b)
715715
(uintmax_t)a, (uintmax_t)b);
716716
return a + b;
717717
}
718-
#define st_add3(a,b,c) st_add((a),st_add((b),(c)))
719-
#define st_add4(a,b,c,d) st_add((a),st_add3((b),(c),(d)))
718+
#define st_add3(a,b,c) st_add(st_add((a),(b)),(c))
719+
#define st_add4(a,b,c,d) st_add(st_add3((a),(b),(c)),(d))
720720

721721
static inline size_t st_mult(size_t a, size_t b)
722722
{

0 commit comments

Comments
 (0)