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>
This commit is contained in:
committed by
Junio C Hamano
parent
041f5ea1cf
commit
5ec1e72823
@ -181,7 +181,7 @@ static struct combine_diff_path *emit_path(struct combine_diff_path *p,
|
||||
struct tree_desc *t, struct tree_desc *tp,
|
||||
int imin)
|
||||
{
|
||||
unsigned mode;
|
||||
unsigned short mode;
|
||||
const char *path;
|
||||
const struct object_id *oid;
|
||||
int pathlen;
|
||||
|
||||
Reference in New Issue
Block a user