diff options
author | Elijah Newren <newren@gmail.com> | 2019-04-05 17:00:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-08 09:02:07 +0200 |
commit | 5ec1e72823735b5682389589b6bee774ae70fa49 (patch) | |
tree | 3780b0e33a6ddaaf42f7bfca192fc1fced100922 /sha1-name.c | |
parent | The third batch (diff) | |
download | git-5ec1e72823735b5682389589b6bee774ae70fa49.tar.xz git-5ec1e72823735b5682389589b6bee774ae70fa49.zip |
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 'sha1-name.c')
-rw-r--r-- | sha1-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-name.c b/sha1-name.c index 6dda2c16df..d4b3d01f3c 100644 --- a/sha1-name.c +++ b/sha1-name.c @@ -1577,7 +1577,7 @@ static void diagnose_invalid_oid_path(const char *prefix, int object_name_len) { struct object_id oid; - unsigned mode; + unsigned short mode; if (!prefix) prefix = ""; |