Skip to content

Commit fb238fb

Browse files
committed
Sync with maint
* maint: Documentation: fix broken linkgit to git-config git-compat-util: st_add4: work around gcc 4.2.x compiler crash
2 parents 0746773 + a0feb1b commit fb238fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/githooks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ preceding SP is also omitted. Currently, no commands pass any
397397
'extra-info'.
398398

399399
The hook always runs after the automatic note copying (see
400-
"notes.rewrite.<command>" in linkgit:git-config.txt[1]) has happened, and
400+
"notes.rewrite.<command>" in linkgit:git-config[1]) has happened, and
401401
thus has access to these notes.
402402

403403
The following command-specific comments apply:

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)