summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2019-04-05 15:00:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-08 07:02:07 (GMT)
commit5ec1e72823735b5682389589b6bee774ae70fa49 (patch)
tree3780b0e33a6ddaaf42f7bfca192fc1fced100922 /cache.h
parent041f5ea1cf987a4068ef5f39ba0a09be85952064 (diff)
downloadgit-5ec1e72823735b5682389589b6bee774ae70fa49.zip
git-5ec1e72823735b5682389589b6bee774ae70fa49.tar.gz
git-5ec1e72823735b5682389589b6bee774ae70fa49.tar.bz2
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 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index ac92421..851c3e6 100644
--- a/cache.h
+++ b/cache.h
@@ -1331,7 +1331,7 @@ static inline int hex2chr(const char *s)
#define FALLBACK_DEFAULT_ABBREV 7
struct object_context {
- unsigned mode;
+ unsigned short mode;
/*
* symlink_path is only used by get_tree_entry_follow_symlinks,
* and only for symlinks that point outside the repository.