diff options
author | Elijah Newren <newren@gmail.com> | 2019-04-05 18:00:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-08 10:02:07 +0300 |
commit | 5ec1e72823735b5682389589b6bee774ae70fa49 (patch) | |
tree | 3780b0e33a6ddaaf42f7bfca192fc1fced100922 /line-log.c | |
parent | 041f5ea1cf987a4068ef5f39ba0a09be85952064 (diff) |
Use 'unsigned short' for mode, like diff_filespec does
struct diff_filespec defines mode to be an 'unsigned short'. Several
other places in the API which we'd like to interact with using a
diff_filespec used a plain unsigned (or unsigned int). This caused
problems when taking addresses, so switch to unsigned short.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.c')
-rw-r--r-- | line-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/line-log.c b/line-log.c index 24e21731c4..f743592bc0 100644 --- a/line-log.c +++ b/line-log.c @@ -498,7 +498,7 @@ static struct commit *check_single_commit(struct rev_info *revs) static void fill_blob_sha1(struct commit *commit, struct diff_filespec *spec) { - unsigned mode; + unsigned short mode; struct object_id oid; if (get_tree_entry(&commit->object.oid, spec->path, &oid, &mode)) |